validate_current_theme хук-фильтрWP 2.7.0

Filters whether to validate the active theme.

Использование

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.
По умолчанию: true

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

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

Где используется хук в WordPress

Использование не найдено.