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.

Return

Array. Filtered Heartbeat settings.

Usage

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

<?php
function wp_heartbeat_set_suspension( $settings ) {
	global $pagenow;

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

	return $settings;
}