customize_post_value_set_{$setting_id} WordPress Action Hook

The customize_post_value_set_{$setting_id} hook is used to set the value of a specific setting. This setting is identified by its setting_id. The value can be anything, but must be a scalar value.

do_action( "customize_post_value_set_{$setting_id}", mixed $value, WP_Customize_Manager $manager ) #

Announces when a specific setting’s unsanitized post value has been set.


Description

Fires when the WP_Customize_Manager::set_post_value() method is called.

The dynamic portion of the hook name, $setting_id, refers to the setting ID.


Top ↑

Parameters

$value

(mixed)Unsanitized setting post value.

$manager

(WP_Customize_Manager)WP_Customize_Manager instance.


Top ↑

Source

File: wp-includes/class-wp-customize-manager.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.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.

Show More