WordPress at a glance
function is not described

wp_heartbeat_set_suspension() WP 3.8.0

Disable suspension of Heartbeat on the Add/Edit Post screens.

  • Global. String. $pagenow

No Hooks.


Array. Filtered Heartbeat settings.


wp_heartbeat_set_suspension( $settings );
$settings(array) (required)
An array of Heartbeat settings.

Code of wp heartbeat set suspension: wp-admin/includes/misc.php WP 5.2.1

function wp_heartbeat_set_suspension( $settings ) {
	global $pagenow;

	if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) {
		$settings['suspension'] = 'disable';

	return $settings;