Last active
December 14, 2015 02:46
-
-
Save jpmarchand/f1977f39e0c02e01f928 to your computer and use it in GitHub Desktop.
Deactivate WordPress Hearbeat API. Source: https://www.siteground.com/tutorials/wordpress/limit-wordpress-heartbeat.htm
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 | |
//* Deactivate WordPress Heartbeart API | |
function stop_heartbeat() { | |
wp_deregister_script('heartbeat'); | |
} | |
add_action('init', 'stop_heartbeat', 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment