WC_REST_Product_Variations_V2_Controller::clear_transients()
Clear caches here so in sync with any new variations.
Метод класса: WC_REST_Product_Variations_V2_Controller{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_REST_Product_Variations_V2_Controller = new WC_REST_Product_Variations_V2_Controller(); $WC_REST_Product_Variations_V2_Controller->clear_transients( $object );
- $object(WC_Data) (обязательный)
- Object data.
Код WC_REST_Product_Variations_V2_Controller::clear_transients() WC REST Product Variations V2 Controller::clear transients WC 9.8.1
public function clear_transients( $object ) { wc_delete_product_transients( $object->get_parent_id() ); wp_cache_delete( 'product-' . $object->get_parent_id(), 'products' ); }