customize_validate_{$this->id}

customize_validate_{$this->id}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

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

  • /wp-includes/class-wp-customize-setting.php line 612
    		 * @param WP_Error             $validity Filtered from `true` to `WP_Error` when invalid.
    		 * @param mixed                $value    Value of the setting.
    		 * @param WP_Customize_Setting $setting  WP_Customize_Setting instance.
    		 */
    		$validity = apply_filters( "customize_validate_{$this->id}", $validity, $value, $this );
    
    		if ( is_wp_error( $validity ) && ! $validity->has_errors() ) {
    			$validity = true;
    		}
    		return $validity;
    	}