heartbeat_settings
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-includes/script-loader.php 842
apply_filters( 'heartbeat_settings', array() )
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 87
add_filter( 'heartbeat_settings', 'wp_heartbeat_set_suspension' );
wp-includes/class-wp-customize-manager.php 389
add_filter( 'heartbeat_settings', array( $this, 'add_customize_screen_to_heartbeat_settings' ) );
wp-includes/default-filters.php 476
add_filter( 'heartbeat_settings', 'wp_heartbeat_settings' );