WP_Customize_Filter_Setting WordPress Class
The WP_Customize_Filter_Setting class is a customizer setting class that allows for rendering and filtering of a setting value. This class is useful for creating settings that need to be filtered before being used. For example, if you need to retrieve data from a remote API and you want to filter the results before displaying them to the user, you can use this class.
WP_Customize_Filter_Setting #
A setting that is used to filter a value, but will not save the results.
Description
Results should be properly handled using another setting or callback.
See also
Source
File: wp-includes/customize/class-wp-customize-filter-setting.php
class WP_Customize_Filter_Setting extends WP_Customize_Setting { /** * Saves the value of the setting, using the related API. * * @since 3.4.0 * * @param mixed $value The value to update. */ public function update( $value ) {} }
Expand full source codeCollapse full source codeView on TracView on GitHub
Methods
- update— Saves the value of the setting, using the related API.
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |