WP_Customize_Widgets::filter_customize_value_old_sidebars_widgets_data()
Filters old_sidebars_widgets_data Customizer setting.
When switching themes, filter the Customizer setting old_sidebars_widgets_data to supply initial $sidebars_widgets before they were overridden by retrieve_widgets(). The value for old_sidebars_widgets_data gets set in the old theme's sidebars_widgets theme_mod.
Метод класса: WP_Customize_Widgets{}
Хуков нет.
Возвращает
Массив
.
Использование
$WP_Customize_Widgets = new WP_Customize_Widgets(); $WP_Customize_Widgets->filter_customize_value_old_sidebars_widgets_data( $old_sidebars_widgets );
- $old_sidebars_widgets(массив) (обязательный)
- -
Заметки
- Смотрите: WP_Customize_Widgets::handle_theme_switch()
Список изменений
С версии 3.9.0 | Введена. |
Код WP_Customize_Widgets::filter_customize_value_old_sidebars_widgets_data() WP Customize Widgets::filter customize value old sidebars widgets data WP 6.7.1
public function filter_customize_value_old_sidebars_widgets_data( $old_sidebars_widgets ) { return $this->old_sidebars_widgets; }