wc_is_active_theme() │ WC 3.3.0

See if theme/s is activate or not.

Хуков нет.

Возвращает

boolean.

Использование

wc_is_active_theme( $theme );
$theme(строка|массив) (обязательный)
Theme name or array of theme names to check.

Список изменений

С версии 3.3.0 Введена.

Код wc_is_active_theme() WC 11.2.2

function wc_is_active_theme( $theme ) {
	return is_array( $theme ) ? in_array( get_template(), $theme, true ) : get_template() === $theme;
}