wc_is_active_theme()
See if theme/s is activate or not.
Хуков нет.
Возвращает
true|false
.
Использование
wc_is_active_theme( $theme );
- $theme(строка|массив) (обязательный)
- Theme name or array of theme names to check.
Список изменений
С версии 3.3.0 | Введена. |
Код wc_is_active_theme() wc is active theme WC 8.7.0
function wc_is_active_theme( $theme ) { return is_array( $theme ) ? in_array( get_template(), $theme, true ) : get_template() === $theme; }