MainWP Community

Change the Heartbeat API Pulse to Every 60 Seconds

Change the Heartbeat API pulse to every 60 seconds of your child site.

Snippet Type

Execute on Child Sites

Snippet

function wpmp_heartbeat_settings( $settings ) {
    $settings['interval'] = 60; //Anything between 15-120
    return $settings;
}
add_filter( 'heartbeat_settings', 'wpmp_heartbeat_settings' );
1 Like