wp_heartbeat_set_suspension( array $settings )
Disable suspension of Heartbeat on the Add/Edit Post screens.
Parameters
- $settings
-
(Required) An array of Heartbeat settings.
Return
(array) Filtered Heartbeat settings.
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;
}
Changelog
Version | Description |
---|---|
WP-3.8.0 | Introduced. |