After woocommerce update I need to flush rewrite_rules
-
Is there any way to execute flush_rewrite_rules(); everytime woocommerce is updated?
I’ve created a new page under my-account using add_rewrite_endpoint and
add_action('woocommerce_account_myproducts_endpoint', 'myproducts_endpoint_content');
But every time woocommerce is updated I get 404 if I try to access to /my-account/myproducts, so I need to flush permalinks.
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘After woocommerce update I need to flush rewrite_rules’ is closed to new replies.