Uses
Uses | Description |
---|---|
wp-includes/theme.php: get_template() | Retrieves name of the current theme. |
wp-includes/theme.php: get_stylesheet() | Retrieves name of the current stylesheet. |
Determines whether a theme is technically active but was paused while loading.
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
(string) (Required) Path to the theme directory relative to the themes directory.
(bool) True, if in the list of paused themes. False, not in the list.
File: wp-admin/includes/theme.php
function is_theme_paused( $theme ) { if ( ! isset( $GLOBALS['_paused_themes'] ) ) { return false; } if ( get_stylesheet() !== $theme && get_template() !== $theme ) { return false; } return array_key_exists( $theme, $GLOBALS['_paused_themes'] ); }
Version | Description |
---|---|
5.2.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_theme_paused