wp_heartbeat_set_suspension

Advertisement

Summery Summery

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

Syntax Syntax

wp_heartbeat_set_suspension( array $settings )

Parameters Parameters

$settings

(array) (Required) An array of Heartbeat settings.

Return Return

(array) Filtered Heartbeat settings.

Source Source

File: wp-admin/includes/misc.php

function wp_heartbeat_set_suspension( $settings ) {
	global $pagenow;

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

	return $settings;
}

Advertisement

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.