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.
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' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.2.0 | Deprecated in favor of the 'customize_dynamic_setting_args' filter. |
3.9.0 | Introduced. |