WP_Customize_Background_Image_Setting::update
Метод класса: WP_Customize_Background_Image_Setting{}
Хуков нет.
Возвращает
true. Always returns true.
Использование
$WP_Customize_Background_Image_Setting = new WP_Customize_Background_Image_Setting(); $WP_Customize_Background_Image_Setting->update( $value );
- $value(разное) (обязательный)
- The value to update. Not used.
Список изменений
| С версии 3.4.0 | Введена. |
| С версии 7.0.0 | Return type updated from void to true for compatibility with base class. |
Код WP_Customize_Background_Image_Setting::update() WP Customize Background Image Setting::update WP 7.0.3
public function update( $value ) {
remove_theme_mod( 'background_image_thumb' );
return true;
}