WC_Helper::has_woo_header │ private static │ WC 11.2.0

Whether an installed plugin or theme carries a Woo header, so the updater handles it.

Метод класса: WC_Helper{}

Хуков нет.

Возвращает

bool.

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

$result = WC_Helper::has_woo_header( $type, $filename ): bool;
$type(строка) (обязательный)
'plugin' or 'theme'.
$filename(строка) (обязательный)
Plugin file, or a theme's stylesheet followed by /style.css.

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

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

Код WC_Helper::has_woo_header() 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 ] );
}