Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_save_validation_before

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
2761            *
2762            * Plugins can add just-in-time {@see 'customize_validate_{$this->ID}'} filters
2763            * at this point to catch any settings registered after `customize_register`.
2764            * The dynamic portion of the hook name, `$this->ID` refers to the setting ID.
2765            *
2766            * @since 4.6.0
2767            *
2768            * @param WP_Customize_Manager $manager WP_Customize_Manager instance.
2769            */
2770           do_action( 'customize_save_validation_before', $this );
2771
2772           // Validate settings.
2773           $validated_values      = array_merge(
2774                array_fill_keys( array_keys( $args['data'] ), null ), // Make sure existence/capability checks are done on value-less setting updates.
2775                $post_values
2776           );
2777           $setting_validities    = $this->validate_setting_values(
2778                $validated_values,
2779                array(