wp_using_themes
Filters whether the current request should use themes.
Usage
add_filter( 'wp_using_themes', 'wp_kama_using_themes_filter' );
/**
* Function for `wp_using_themes` filter-hook.
*
* @param bool $wp_using_themes Whether the current request should use themes.
*
* @return bool
*/
function wp_kama_using_themes_filter( $wp_using_themes ){
// filter...
return $wp_using_themes;
}
- $wp_using_themes(true|false)
- Whether the current request should use themes.
Changelog
| Since 5.1.0 | Introduced. |
Where the hook is called
wp_using_themes
wp-includes/load.php 1771
return apply_filters( 'wp_using_themes', defined( 'WP_USE_THEMES' ) && WP_USE_THEMES );
Where the hook is used in WordPress
wp-includes/load.php 1120
add_filter( 'wp_using_themes', '__return_false' );