Automattic\WooCommerce\Caches
ProductCountCache::get_cache_key
Get the cache key for a given product type and status.
Метод класса: ProductCountCache{}
Хуков нет.
Возвращает
Строку.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_cache_key( $product_type, $product_status ): string;
- $product_type(строка) (обязательный)
- The post type (e.g.
'product', 'product_variation'). - $product_status(строка) (обязательный)
- The status of the product.
Код ProductCountCache::get_cache_key() ProductCountCache::get cache key WC 11.0.1
private function get_cache_key( string $product_type, string $product_status ): string {
return $this->cache_prefix . '_' . $product_type . '_' . $product_status;
}