customize_post_value_set_<id>
The WordPress Core customize post value set id hook.
Description
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.
- // run the action
- do_action( 'customize_post_value_set_{$id}', $array, $int );
- The following example is for adding a hook callback.
- // define the customize_post_value_set_<id> callback
- function action_customize_post_value_set_id( $array, $int ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "customize_post_value_set_{$id}", 'action_customize_post_value_set_id', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- 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
- add_action( "customize_post_value_set_{$this->id}", array( $this, '_clear_aggregated_multidimensional_preview_applied_flag' ), 9 );
- add_action( "customize_post_value_set_{$this->id}", array( $this, 'preview' ) );