validate_current_theme
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
wp-includes/theme.php 909
if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {