Modify or Disable Heartbeat API Without Plugin – Code DPlugins

PHOTO EMBED

Sun May 15 2022 18:27:54 GMT+0000 (Coordinated Universal Time)

Saved by @peterteszary #php

<?php

add_action( 'init', 'stop_heartbeat', 1 );
 
function stop_heartbeat() {
    wp_deregister_script('heartbeat');
}

?>
content_copyCOPY

https://code.dplugins.com/modify-or-disable-heartbeat-api-without-plugin/