W3cubDocs

/WordPress

apply_filters( ‘validate_current_theme’, bool $validate )

Filters whether to validate the active theme.

Parameters

$validatebool
Whether to validate the active theme. Default true.

Source

if ( wp_installing() || ! apply_filters( 'validate_current_theme', true ) ) {

Changelog

Version Description
2.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/validate_current_theme