customize_validate_{$setting->id}

customize_validate_{$setting->id}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('customize_validate_{$setting->id}') is found 1 times:

  • /wp-includes/class-wp-customize-manager.php line 2375
    				$validity = $setting->validate( $unsanitized_value );
    			}
    			if ( ! is_wp_error( $validity ) ) {
    				/** This filter is documented in wp-includes/class-wp-customize-setting.php */
    				$late_validity = apply_filters( "customize_validate_{$setting->id}", new WP_Error(), $unsanitized_value, $setting );
    				if ( is_wp_error( $late_validity ) && $late_validity->has_errors() ) {
    					$validity = $late_validity;
    				}
    			}
    			if ( ! is_wp_error( $validity ) ) {
    				$value = $setting->sanitize( $unsanitized_value );