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