How to purge cache after updating a product via WooCommerce REST API
-
add_action( 'woocommerce_update_product', 'remover_cache_produto', 10, 1 ); function remover_cache_produto($product_id) { $product = wc_get_product($product_id); ... //clean cache }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to purge cache after updating a product via WooCommerce REST API’ is closed to new replies.