Created
September 17, 2016 03:56
-
-
Save topdown/3d61dd79b2fcbaab0760b0776e6fde4d to your computer and use it in GitHub Desktop.
Disable WP heartbeat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Also available in a plugin | |
// https://wordpress.org/plugins/heartbeat-control/ | |
add_action( 'init', 'stop_heartbeat', 1 ); | |
function stop_heartbeat() { | |
wp_deregister_script('heartbeat'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment