is_theme_paused()
Проверено на WordPress 6.9, обновлено Источник: WordPress Developer Resources.
Сигнатура
is_theme_paused( string $theme ): bool
Описание
Дополнительные сведения об этой и похожих функциях темы см. в статье о Conditional Tags в Theme Developer Handbook.
Оригинал (английский)
For more information on this and similar theme functions, check out the Conditional Tags article in the Theme Developer Handbook.
Параметры
$theme
string
обязательный
Возвращаемое значение
bool
Исходный код
wp-admin/includes/theme.php:1113
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'] );
}
История изменений
| Версия | Описание |
|---|---|
| 5.2.0 | Introduced. |

