Uses
Uses | Description |
---|---|
wp-includes/load.php: wp_using_themes | Filters whether the current request should use themes. |
wp-includes/plugin.php: apply_filters() | Calls the callback functions that have been added to a filter hook. |
Determines whether the current request should use themes.
(bool) True if themes should be used, false otherwise.
File: wp-includes/load.php
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 ); }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_using_themes