wp_heartbeat_set_suspension( array $settings ): array

In this article

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

Parameters

$settingsarrayrequired
An array of Heartbeat settings.

Return

array Filtered Heartbeat settings.

Source

function wp_heartbeat_set_suspension( $settings ) {
	global $pagenow;

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

	return $settings;
}

Changelog

VersionDescription
3.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.