heartbeat_settings filter-hookWP 3.6.0

Filters the Heartbeat settings.

Usage

add_filter( 'heartbeat_settings', 'wp_kama_heartbeat_settings_filter' );

/**
 * Function for `heartbeat_settings` filter-hook.
 * 
 * @param array $settings Heartbeat settings array.
 *
 * @return array
 */
function wp_kama_heartbeat_settings_filter( $settings ){

	// filter...
	return $settings;
}
$settings(array)
Heartbeat settings array.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_default_scripts()
heartbeat_settings
wp-includes/script-loader.php 775
apply_filters( 'heartbeat_settings', array() )

Where the hook is used in WordPress

wp-admin/includes/admin-filters.php 85
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
wp-includes/class-wp-customize-manager.php 381
add_filter( 'heartbeat_settings', array( $this, 'add_customize_screen_to_heartbeat_settings' ) );
wp-includes/default-filters.php 468
add_filter( 'heartbeat_settings', 'wp_heartbeat_settings' );