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.
Parameters
- $this
(WP_Customize_Setting)WP_Customize_Setting instance.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |