validate_current_theme хук-фильтр . WP 2.7.0
Filters whether to validate the current theme.
Использование
add_filter( 'validate_current_theme', 'filter_function_name_4516' ); function filter_function_name_4516( $validate ){ // filter... return $validate; }
- $validate(true/false)
- Whether to validate the current theme.
По умолчанию: true
Список изменений
С версии 2.7.0 | Введена. |
Где вызывается хук
validate_current_theme
wp-includes/theme.php 856
if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {