Open maxisosa opened 1 year ago
add_action( 'woocommerce_update_product', 'remover_cache_produto', 10, 1 ); function remover_cache_produto($product_id) { $product = wc_get_product($product_id);
...
//clean cache }
add_action( 'woocommerce_update_product', 'remover_cache_produto', 10, 1 ); function remover_cache_produto($product_id) { $product = wc_get_product($product_id);
//clean cache }