validate_current_theme

validate_current_theme

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.4.1

apply_filters('validate_current_theme') is found 1 times:

  • /wp-includes/theme.php line 844
    	 * @since 2.7.0
    	 *
    	 * @param bool $validate Whether to validate the current theme. Default true.
    	 */
    	if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {
    		return true;
    	}
    
    	if ( ! file_exists( get_template_directory() . '/index.php' ) ) {
    		// Invalid.
    	} elseif ( ! file_exists( get_template_directory() . '/style.css' ) ) {