WP_Customize_Widgets::schedule_customize_register
Ensures widgets are available for all types of previews.
When in preview, hook to customize_register for settings after WordPress is loaded so that all filters have been initialized (e.g. Widget Visibility).
Метод класса: WP_Customize_Widgets{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WP_Customize_Widgets = new WP_Customize_Widgets(); $WP_Customize_Widgets->schedule_customize_register();
Список изменений
| С версии 3.9.0 | Введена. |
Код WP_Customize_Widgets::schedule_customize_register() WP Customize Widgets::schedule customize register WP 7.0.1
public function schedule_customize_register() {
if ( is_admin() ) {
$this->customize_register();
} else {
add_action( 'wp', array( $this, 'customize_register' ) );
}
}