Created
August 17, 2020 19:56
-
-
Save wpsmith/db4f5fe63409ac66fcef02c18f970cd8 to your computer and use it in GitHub Desktop.
WP: Remove the WP Heartbeat
This file contains hidden or 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 | |
add_action( 'init', 'stop_heartbeat', 1 ); | |
/** | |
* Stop the heartbeat altogether. | |
*/ | |
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