wp_heartbeat_set_suspension

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

Description

(array) wp_heartbeat_set_suspension( (array) $settings ); 

Returns (array)

Filtered Heartbeat settings.

Parameters (1)

0. $settings (array)
An array of Heartbeat settings.

Usage

  1. if ( !function_exists( 'wp_heartbeat_set_suspension' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/misc.php'; 
  3.  
  4. // An array of Heartbeat settings. 
  5. $settings = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_heartbeat_set_suspension($settings); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/misc.php  
  1. function wp_heartbeat_set_suspension( $settings ) { 
  2. global $pagenow; 
  3.  
  4. if ( 'post.php' === $pagenow || 'post-new.php' === $pagenow ) { 
  5. $settings['suspension'] = 'disable'; 
  6.  
  7. return $settings;