WP_Customize_Filter_Setting{}└─ WP_Customize_Setting
A setting that is used to filter a value, but will not save the results.
Results should be properly handled using another setting or callback.
No Hooks.
Usage
$WP_Customize_Filter_Setting = new WP_Customize_Filter_Setting(); // use class methods
Methods
- public update( $value )
Notes
- See: WP_Customize_Setting
Changelog
| Since 3.4.0 | Introduced. |
WP_Customize_Filter_Setting{} WP Customize Filter Setting{} code WP 7.0
class WP_Customize_Filter_Setting extends WP_Customize_Setting {
/**
* Saves the value of the setting, using the related API.
*
* @since 3.4.0
* @since 7.0.0 Return type updated from void to true for compatibility with base class.
*
* @param mixed $value The value to update.
* @return true Always returns true.
*/
public function update( $value ) {
return true;
}
}