Filters old_sidebars_widgets_data Customizer setting.
Description
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.
See also
Parameters
$old_sidebars_widgets
arrayrequired
Source
public function filter_customize_value_old_sidebars_widgets_data( $old_sidebars_widgets ) {
return $this->old_sidebars_widgets;
}
Changelog
Version | Description |
---|---|
3.9.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.