wc_is_active_theme()
See if theme/s is activate or not.
No Hooks.
Returns
true|false.
Usage
wc_is_active_theme( $theme );
- $theme(string|array) (required)
- Theme name or array of theme names to check.
Changelog
| Since 3.3.0 | Introduced. |
wc_is_active_theme() wc is active theme code WC 10.7.0
function wc_is_active_theme( $theme ) {
return is_array( $theme ) ? in_array( get_template(), $theme, true ) : get_template() === $theme;
}