WordPress at Your Fingertips
function is not described

WC_REST_Products_V1_Controller::clear_transients() public WC 1.0

Clear cache/transients.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_REST_Products_V1_Controller = new WC_REST_Products_V1_Controller();
$WC_REST_Products_V1_Controller->clear_transients( $post );
$post(WP_Post) (required)
Post data.

Code of WC_REST_Products_V1_Controller::clear_transients() WC 5.9.0

public function clear_transients( $post ) {
	wc_delete_product_transients( $post->ID );
}