wp_using_themes() WP 5.1.0
Determines whether the current request should use themes.
Hooks from the function
Return
true|false
. True if themes should be used, false otherwise.
Usage
wp_using_themes();
Changelog
Since 5.1.0 | Introduced. |
Code of wp_using_themes() wp using themes WP 5.7.1
function wp_using_themes() {
/**
* Filters whether the current request should use themes.
*
* @since 5.1.0
*
* @param bool $wp_using_themes Whether the current request should use themes.
*/
return apply_filters( 'wp_using_themes', defined( 'WP_USE_THEMES' ) && WP_USE_THEMES );
}