wppaste
WordPress

do_action( 'customize_save_validation_before', WP_Customize_Manager $manager )

Since
4.6.0
Fires before save validation happens.

Description

Plugins can add just-in-time {@see 'customizevalidate{$this->ID}'} filters at this point to catch any settings registered after customize_register.
The dynamic portion of the hook name, $this->ID refers to the setting ID.

Compatibility

WordPress
since 4.6.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$managerWP_Customize_Manager
WP_Customize_Manager instance.

Where this hook fires · 1

  • wp-includes/class-wp-customize-manager.php:2780WP_Customize_Manager::save_changeset_post()

Source code

		 * The dynamic portion of the hook name, `$this->ID` refers to the setting ID.		 *		 * @since 4.6.0		 *		 * @param WP_Customize_Manager $manager WP_Customize_Manager instance.		 */		do_action( 'customize_save_validation_before', $this ); 		// Validate settings.		$validated_values      = array_merge(			array_fill_keys( array_keys( $args['data'] ), null ), // Make sure existence/capability checks are done on value-less setting updates.			$post_values		);

Changelog

Introduced in 4.6.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 7.0.4 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.