Automattic\WooCommerce\Internal\Admin\Notes

ExtensionsWithoutSubscription::get_plugins │ private static │ WC 1.0

Active WooCommerce.com extensions without a subscription, or null when that can't be known.

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

Хуков нет.

Возвращает

array|null.

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

$result = ExtensionsWithoutSubscription::get_plugins( $fetch ): ?array;
$fetch(true|false)
Whether the subscription list may be fetched from WooCommerce.com when it isn't cached.
По умолчанию: true

Код ExtensionsWithoutSubscription::get_plugins() WC 11.3.0

private static function get_plugins( bool $fetch = true ): ?array {
	if ( ! class_exists( 'WC_Helper_Updater' ) ) {
		return null;
	}

	return \WC_Helper_Updater::get_plugins_without_subscription( $fetch );
}