WC_Helper::has_cached_subscriptions
Whether the subscription list is cached, so get_subscriptions() won't call WooCommerce.com.
Метод класса: WC_Helper{}
Хуков нет.
Возвращает
bool.
Использование
$result = WC_Helper::has_cached_subscriptions(): bool;
Список изменений
| С версии 11.3.0 | Введена. |
Код WC_Helper::has_cached_subscriptions() WC Helper::has cached subscriptions WC 11.3.0
public static function has_cached_subscriptions(): bool {
return is_array( get_transient( self::CACHE_KEY_SUBSCRIPTIONS ) );
}