GC_Customize_Manager::add_customize_screen_to_heartbeat_settings()
最后更新于:2021-11-27 00:40:52
GC_Customize_Manager::add_customize_screen_to_heartbeat_settings( array$settings)Filters heartbeat settings for the Customizer.
参数
- $settings
-
(array) (Required) Current settings to filter.
响应
(array) Heartbeat settings.
源文件
文件: gc-includes/class-gc-customize-manager.php
public function add_customize_screen_to_heartbeat_settings( $settings ) {
global $pagenow;
if ( 'customize.php' === $pagenow ) {
$settings['screenId'] = 'customize';
}
return $settings;
}