customize_save_{$this->id_data[‘base’]} WordPress Action Hook

The customize_save_{$this->id_data[‘base’]} hook is called when the Customizer's Save button is clicked for a given Customizer setting. This hook allows you to intercept the Customizer's save action and perform your own custom processing. For example, you could use this hook to save the submitted Customizer data to a custom database table, or to send an email notification whenever the Customizer is saved. The customize_save_{$this->id_data[‘base’]} hook is called with two arguments: the Customizer Setting object that was saved, and the Customizer Manager object.

do_action( "customize_save_{$this->id_data['base']}", WP_Customize_Setting $this ) #

Fires when the WP_Customize_Setting::save() method is called.


Description

The dynamic portion of the hook name, $this->id_data['base'] refers to the base slug of the setting name.


Top ↑

Parameters

$this

(WP_Customize_Setting)WP_Customize_Setting instance.


Top ↑

Source

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

View on Trac


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.