WP_Customize_Manager::add_customize_screen_to_heartbeat_settings()
Filters heartbeat settings for the Customizer.
Method of the class: WP_Customize_Manager{}
No Hooks.
Return
Array
. Heartbeat settings.
Usage
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->add_customize_screen_to_heartbeat_settings( $settings );
- $settings(array) (required)
- Current settings to filter.
Notes
- Global. String. $pagenow The filename of the current screen.
Changelog
Since 4.9.0 | Introduced. |
WP_Customize_Manager::add_customize_screen_to_heartbeat_settings() WP Customize Manager::add customize screen to heartbeat settings code WP 6.5.2
public function add_customize_screen_to_heartbeat_settings( $settings ) { global $pagenow; if ( 'customize.php' === $pagenow ) { $settings['screenId'] = 'customize'; } return $settings; }