Automattic\WooCommerce\Caches
ProductCountCache::get_saved_statuses_cache_key
Get the cache key for saved statuses of the given product type.
Method of the class: ProductCountCache{}
No Hooks.
Returns
String.
Usage
// private - for code of main (parent) class only $result = $this->get_saved_statuses_cache_key( $product_type ): string;
- $product_type(string) (required)
- The post type (e.g.
'product', 'product_variation').
ProductCountCache::get_saved_statuses_cache_key() ProductCountCache::get saved statuses cache key code WC 11.0.0
private function get_saved_statuses_cache_key( string $product_type ): string {
return $this->cache_prefix . '_' . $product_type . '_statuses';
}