Created
June 24, 2018 05:37
-
-
Save WordBits/6e18a8cfdf27cd917ff06d09fda9fde3 to your computer and use it in GitHub Desktop.
Completely removes the WordPress Heartbeat by deregistering the script.
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 | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/completely-remove-the-wordpress-heartbeat/ | |
// Created by: jeffmatson | |
?> | |
<?php | |
// Fire the action on init. | |
add_action( 'init', 'kill_wp_heartbeat' ); | |
function kill_wp_heartbeat() { | |
// Deregister the script. | |
wp_deregister_script('heartbeat'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment