Automattic\WooCommerce\Internal\Admin\Notes
ExtensionsWithoutSubscription::get_plugins
Active WooCommerce.com extensions without a subscription, or null when that can't be known.
Method of the class: ExtensionsWithoutSubscription{}
No Hooks.
Returns
array|null.
Usage
$result = ExtensionsWithoutSubscription::get_plugins( $fetch ): ?array;
- $fetch(true|false)
- Whether the subscription list may be fetched from WooCommerce.com when it isn't cached.
Default:true
ExtensionsWithoutSubscription::get_plugins() ExtensionsWithoutSubscription::get plugins code 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 );
}