customize_post_value_set_<id>

The WordPress Core customize post value set id hook.

Description

add_action( 'customize_post_value_set_<id>', (callback) $array, (int) $int ); 

Parameters (2)

0. $array (callback) => array( $this, '_clear_aggregated_multidimensional_preview_applied_flag' )
The array.
1. $int (int) => 9
The int.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'customize_post_value_set_{$id}', $array, $int ); 
The following example is for adding a hook callback.
  1. // define the customize_post_value_set_<id> callback 
  2. function action_customize_post_value_set_id( $array, $int ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( "customize_post_value_set_{$id}", 'action_customize_post_value_set_id', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( "customize_post_value_set_{$id}", 'action_customize_post_value_set_id', 10, 2 ); 

Defined (2)

The action is defined in the following location(s).

/wp-includes/class-wp-customize-setting.php  
  1. add_action( "customize_post_value_set_{$this->id}", array( $this, '_clear_aggregated_multidimensional_preview_applied_flag' ), 9 ); 
  1. add_action( "customize_post_value_set_{$this->id}", array( $this, 'preview' ) );