Warning: This method has been deprecated. Deprecated in favor of the ‘customize_dynamic_setting_args’ filter instead.
WP_Customize_Widgets::remove_prepreview_filters() WordPress Method
The WP_Customize_Widgets::remove_prepreview_filters() method is used to remove all pre-preview filters from a widget. This is useful for removing unwanted hooks that may be applied to a widget before it is rendered on the front-end.
WP_Customize_Widgets::remove_prepreview_filters() #
{@internal Missing Summary}
Description
See the ‘customize_dynamic_setting_args’ filter.
Source
File: wp-includes/class-wp-customize-widgets.php
public function remove_prepreview_filters() { _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. |