wc_is_active_theme( string|array $theme )
See if theme/s is activate or not.
Description Description
Parameters Parameters
- $theme
-
(Required) Theme name or array of theme names to check.
Return Return
(boolean)
Source Source
File: includes/wc-core-functions.php
function wc_is_active_theme( $theme ) {
return is_array( $theme ) ? in_array( get_template(), $theme, true ) : get_template() === $theme;
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.3.0 | Introduced. |