WC_Helper::has_woo_header
Whether an installed plugin or theme carries a Woo header, so the updater handles it.
Method of the class: WC_Helper{}
No Hooks.
Returns
bool.
Usage
$result = WC_Helper::has_woo_header( $type, $filename ): bool;
- $type(string) (required)
'plugin'or'theme'.- $filename(string) (required)
- Plugin file, or a theme's stylesheet followed by /style.css.
Changelog
| Since 11.2.0 | Introduced. |
WC_Helper::has_woo_header() WC Helper::has woo header code WC 11.3.0
private static function has_woo_header( string $type, string $filename ): bool {
$woo_products = 'theme' === $type ? self::get_local_woo_themes() : self::get_local_woo_plugins();
return isset( $woo_products[ $filename ] );
}