Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
WC_Product_Data_Store_CPT
clear_caches
WC_Product_Data_Store_CPT::clear_caches PHP Method
WC_Product_Data_Store_CPT Class Documentation
Show file
Open project: woocommerce/woocommerce
clear_caches()
protected
method
Clear any caches.
Since:
2.7.0
protected
clear_caches
( &
$product
)
protected function clear_caches(&$product) { wc_delete_product_transients($product->get_id()); }
WC_Product_Data_Store_CPT
clear_caches
create
delete
find_matching_product_variation
get_ending_sales
get_featured_product_ids
get_on_sale_products
get_product_id_by_sku
get_products
get_related_products
get_related_products_query
get_shipping_class_id_by_slug
get_starting_sales
is_existing_sku
read
read_attributes
read_downloads
read_product_data
search_products
update
update_attributes
update_average_rating
update_downloads
update_post_meta
update_product_stock
update_rating_counts
update_review_count
update_term_counts
update_terms
update_version_and_type