WP_Customize_Background_Image_Setting::update() WordPress Method
The WP_Customize_Background_Image_Setting::update() method is used to update the background image for a WordPress site. This method takes two arguments: the new image URL and the image data. The image data is an array of data that includes the image URL, width, height, and other data. The method then updates the WordPress database with the new image URL and image data.
WP_Customize_Background_Image_Setting::update( mixed $value ) #
Parameters
- $value
(mixed)(Required)The value to update. Not used.
Source
File: wp-includes/customize/class-wp-customize-background-image-setting.php
public function update( $value ) { remove_theme_mod( 'background_image_thumb' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |