Automattic\WooCommerce\StoreApi\Utilities

RateLimits::get_cached()protected staticWC 1.0

Retrieve a cached store api rate limit.

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

Хуков нет.

Возвращает

true|false|Объект.

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

$result = RateLimits::get_cached( $action_id );
$action_id(строка) (обязательный)
Identifier of the action.

Код RateLimits::get_cached() WC 9.7.1

protected static function get_cached( $action_id ) {
	return wp_cache_get( self::get_cache_key( $action_id ), self::CACHE_GROUP );
}