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.


Top ↑

Source

File: wp-includes/customize/class-wp-customize-background-image-setting.php

	public function update( $value ) {
		remove_theme_mod( 'background_image_thumb' );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.