WP_Customize_Manager::add_customize_screen_to_heartbeat_settings()
Filters heartbeat settings for the Customizer.
Метод класса: WP_Customize_Manager{}
Хуков нет.
Возвращает
Массив
. Heartbeat settings.
Использование
$WP_Customize_Manager = new WP_Customize_Manager(); $WP_Customize_Manager->add_customize_screen_to_heartbeat_settings( $settings );
- $settings(массив) (обязательный)
- Current settings to filter.
Заметки
- Global. Строка. $pagenow The filename of the current screen.
Список изменений
С версии 4.9.0 | Введена. |
Код WP_Customize_Manager::add_customize_screen_to_heartbeat_settings() WP Customize Manager::add customize screen to heartbeat settings WP 6.2.2
public function add_customize_screen_to_heartbeat_settings( $settings ) { global $pagenow; if ( 'customize.php' === $pagenow ) { $settings['screenId'] = 'customize'; } return $settings; }