WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 2677 | * |
| 2678 | * Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters |
| 2679 | * at this point to catch any settings registered after `customize_register`. |
| 2680 | * The dynamic portion of the hook name, `$this->ID` refers to the setting ID. |
| 2681 | * |
| 2682 | * @since 4.6.0 |
| 2683 | * |
| 2684 | * @param WP_Customize_Manager $this WP_Customize_Manager instance. |
| 2685 | */ |
| 2686 | do_action( 'customize_save_validation_before', $this ); |
| 2687 | |
| 2688 | // Validate settings. |
| 2689 | $validated_values = array_merge( |
| 2690 | array_fill_keys( array_keys( $args['data'] ), null ), // Make sure existence/capability checks are done on value-less setting updates. |
| 2691 | $post_values |
| 2692 | ); |
| 2693 | $setting_validities = $this->validate_setting_values( $validated_values, array( |
| 2694 | 'validate_capability' => true, |
| 2695 | 'validate_existence' => true, |