How To Disable WordPress Heartbeat (admin-ajax) - function.php

PHOTO EMBED

Wed Aug 31 2022 21:20:48 GMT+0000 (UTC)

Saved by @satinbest #php

//Disable The WordPress Heartbeat API
add_action( 'init', 'stop_heartbeat', 1 );
function stop_heartbeat() {
wp_deregister_script('heartbeat');
}
content_copyCOPY

Disable The WordPress Heartbeat API - bloat

https://onlinemediamasters.com/disable-wordpress-heartbeat-api/