validate_current_theme

validate_current_theme

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('validate_current_theme') is found 1 times:

  • /wp-includes/theme.php line 909
    	 * @since 2.7.0
    	 *
    	 * @param bool $validate Whether to validate the active theme. Default true.
    	 */
    	if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {
    		return true;
    	}
    
    	if (
    		! file_exists( get_template_directory() . '/templates/index.html' )
    		&& ! file_exists( get_template_directory() . '/block-templates/index.html' ) // Deprecated path support since 5.9.0.