WordPress at Your Fingertips
function is not described

WC_Post_Data::delete_product_query_transients() public WC 1.0

Delete product view transients when needed e.g. when post status changes, or visibility/stock status is modified.

{} It's a method of the class: WC_Post_Data{}

No Hooks.


null. Nothing.


$result = WC_Post_Data::delete_product_query_transients();

Code of WC_Post_Data::delete_product_query_transients() WC 5.6.0

public static function delete_product_query_transients() {
	WC_Cache_Helper::get_transient_version( 'product_query', true );