WC_Helper::has_cached_subscriptions
Whether the subscription list is cached, so get_subscriptions() won't call WooCommerce.com.
Method of the class: WC_Helper{}
No Hooks.
Returns
bool.
Usage
$result = WC_Helper::has_cached_subscriptions(): bool;
Changelog
| Since 11.3.0 | Introduced. |
WC_Helper::has_cached_subscriptions() WC Helper::has cached subscriptions code WC 11.3.0
public static function has_cached_subscriptions(): bool {
return is_array( get_transient( self::CACHE_KEY_SUBSCRIPTIONS ) );
}