Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_save_{$this->id_data[base]}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
484            * Fires when the WP_Customize_Setting::save() method is called.
485            *
486            * The dynamic portion of the hook name, `$this->id_data['base']` refers to
487            * the base slug of the setting name.
488            *
489            * @since 3.4.0
490            *
491            * @param WP_Customize_Setting $this WP_Customize_Setting instance.
492            */
493           do_action( 'customize_save_' . $this->id_data['base'], $this );
494
495           $this->update( $value );
496      }
497
498      /**
499       * Fetch and sanitize the $_POST value for the setting.
500       *
501       * During a save request prior to save, post_value() provides the new value while value() does not.
502       *