Automattic\WooCommerce\Caches

OrderCountCache::get_cache_key │ private │ WC 1.0

Get the cache key for a given order type and status.

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

Хуков нет.

Возвращает

string. The cache key.

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

// private - только в коде основоного (родительского) класса
$result = $this->get_cache_key( $order_type, $order_status );
$order_type(строка) (обязательный)
The type of order.
$order_status(строка) (обязательный)
The status of the order.

Код OrderCountCache::get_cache_key() WC 11.3.0

private function get_cache_key( $order_type, $order_status ) {
	return $this->cache_prefix . '_' . $order_type . '_' . $order_status;
}