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.
Хуков нет.
Использование
$WP_Customize_Filter_Setting = new WP_Customize_Filter_Setting(); // use class methods
Методы
- public update( $value )
Заметки
| Смотрите: WP_Customize_Setting |
Список изменений
| С версии 3.4.0 | Введена. |
Код WP_Customize_Filter_Setting{} WP Customize Filter Setting{} WP 7.1.3
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;
}
}