Advertisement
fauzanjeg

Disable Heartbeat Script from WordPress

Oct 22nd, 2021
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.16 KB | None | 0 0
  1. /* Disable Heartbeat Script from WordPress */
  2. function stop_heartbeat() {
  3.     wp_deregister_script( 'heartbeat' );
  4. }
  5. add_action( 'init', 'stop_heartbeat', 999999 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement