validate_current_theme filter-hookWP 2.7.0

Filters whether to validate the active theme.

Usage

add_filter( 'validate_current_theme', 'wp_kama_validate_current_theme_filter' );

/**
 * Function for `validate_current_theme` filter-hook.
 * 
 * @param bool $validate Whether to validate the active theme.
 *
 * @return bool
 */
function wp_kama_validate_current_theme_filter( $validate ){

	// filter...
	return $validate;
}
$validate(true|false)
Whether to validate the active theme.
Default: true

Changelog

Since 2.7.0 Introduced.

Where the hook is called

validate_current_theme()
validate_current_theme
wp-includes/theme.php 886
if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {

Where the hook is used in WordPress

Usage not found.