Warning: This method has been deprecated. Deprecated in favor of the ‘customize_dynamic_setting_args’ filter instead.

WP_Customize_Widgets::prepreview_added_widget_instance() WordPress Method

This method is used to add a widget instance to the previewer. The first parameter is the widget_id of the widget to add. The second parameter is an array of arguments to pass to the widget constructor. The third parameter is an array of options for the widget. The widget will be added to the sidebars if they are active in the current theme. If the theme does not have sidebars, the widget will be added to the "inactive_widgets" area.

WP_Customize_Widgets::prepreview_added_widget_instance() #

{@internal Missing Summary}


Description

See the ‘customize_dynamic_setting_args’ filter.


Top ↑

Source

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

	public function prepreview_added_widget_instance() {
		_deprecated_function( __METHOD__, '4.2.0', 'customize_dynamic_setting_args' );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.2.0Deprecated in favor of the 'customize_dynamic_setting_args' filter.
3.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More