WP_Customize_Widgets::filter_customize_value_old_sidebars_widgets_data( array $old_sidebars_widgets )

Filters old_sidebars_widgets_data Customizer setting.

Description 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 See also

Top ↑

Parameters Parameters


(array) (Required)

Top ↑

Return Return


Top ↑

Source Source

File: wp-includes/class-wp-customize-widgets.php

	public function filter_customize_value_old_sidebars_widgets_data( $old_sidebars_widgets ) {
		return $this->old_sidebars_widgets;

Top ↑

Changelog Changelog

Version Description
3.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.