WP_Customize_Filter_Setting WordPress Class

The WP_Customize_Filter_Setting class is a customizer setting class that allows for rendering and filtering of a setting value. This class is useful for creating settings that need to be filtered before being used. For example, if you need to retrieve data from a remote API and you want to filter the results before displaying them to the user, you can use this class.

WP_Customize_Filter_Setting #

A setting that is used to filter a value, but will not save the results.


Description

Results should be properly handled using another setting or callback.

Top ↑

See also


Top ↑

Source

File: wp-includes/customize/class-wp-customize-filter-setting.php

class WP_Customize_Filter_Setting extends WP_Customize_Setting {

	/**
	 * Saves the value of the setting, using the related API.
	 *
	 * @since 3.4.0
	 *
	 * @param mixed $value The value to update.
	 */
	public function update( $value ) {}
}


Top ↑

Methods

  • update— Saves the value of the setting, using the related API.

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.