flush_rewrite_rules should only be called on the plugin activation OR after you update or add rewrite rules programatically.
If it does not work after verifying this, there is some other issue on your site. Make sure you are not calling flush_rewrite_rules in constructor or somewhere else on every page load.
Related Posts:
- How to remove the sub-category from Woocommerce product URL
- How to remove product base from WooCommerce product permalinks
- Unable to update Woocommerce Product Permalink
- Permalinks contain unwanted space resulting in broken links
- Subcategories not working when using shared base with custom taxonomy
- WooCommerce product category permalinks
- Add Custom Slug Tags Per Page
- How to rewrite product permalinks in Woocommerce to use category slugs
- Add only sku to product url woocoomerce
- Woocommerce Product permalinks “product” word is not working
- Custom WooCommerce rewrite rules with comma delimiter
- How to change product category permalinks programmatically?
- One Time Access URL after purchasing subscription
- WooCommerce return 404 in the product page
- How to remove the Sub category product URL Woocommerce
- Woocommerce posts and products links works only once and then get 404 error
- Custom pagination permalink structure Product page
- Adding country subdomain to an existing website like www.example.com/uk
- WooCommerce product id as permalink
- Woocommerce product and category in url [closed]
- WooCommerce product permalink based on product’s current category
- Woocommerce products permalink based on SKU
- woocommerce permalinks like “?p=%post_id%”
- Cannot use dynamic prefix for WooCommerce permalink
- Are there any hook or filter when refund is done through admin -woocommerce
- How to change or add Woocommerce thank you page URL key content?
- Orders being sent to wrong admin email in WooCommerce [closed]
- WooCommerce: add different order item meta for each item in order
- Woocommerce Multisite Search Mod to archive.php but no pagination
- Extend Woocommerce rest api routes fails
- Woocommerce: Remove variant options from admin new order email
- get deepest Woocommerce Product Category on Archivepage
- how to add custom button on product
- What is the action hook for an order that fails on frontend checkout in WooCommerce?
- Woocommerce change tax rate programmaticly
- Wrong product thumbnail size
- Add .html to Woocommerce permalinks [closed]
- Get the cart details from the order id in woocommerce?
- Woocommerce Customs Endpoint
- Woocommerce add payment method outside of checkout and my account
- Changing the Woocommerce breadcrumb menu [closed]
- Position image widget in mega menu
- short description in shop page after title
- Allow WooCommerce existing customers to checkout without being logged in [closed]
- What will make Woocommerce REST API to issue 401 [closed]
- WP_Error on attribute + term insert
- change woocommerce product statut (draft ->publish // publish->draft) depends on the month [closed]
- How to add taxonomy term under the thumbnail on woocommerce product page
- How to overwrite price html in woocommerce single product page
- woocommerce breadcrumbs in theme [closed]
- Shipping methods in dropdown instead of radio buttons [closed]
- 600k of option_name “c_facebook_background_product_sync_job”
- Adding Buy Button to Blog Post (Woocommerce) [closed]
- Woocommerce get the Archive/Category slug of the current category page
- Woocommerce Variable Product – Please choose product options… [closed]
- woocommerce_order_status_completed not working
- Woocommerce – auto logout after payment
- Synchronise Renewals on existing subscriptions [closed]
- Sort downloads by most recently purchased first in my account WooCommerce [closed]
- Hide shipping method in woocommerce if custom checkbox field is selected
- how to change add to cart button to call for price button in one of product variation?
- Next/Previous Product with custom order by price & products inside the product category [closed]
- Submitting product attributes via Ninja Forms wordpress?
- apply_filter and add_filter conflict
- Migrating WordPress + WooCommerce from server to Local
- wp-cron and woocommerce subscriptions killing performance
- How to Add “parent category description” in Woocommerce sub category page if there is no description available for child category
- How to use decimal in quantity fields in WooCommerce for certain categories?
- Getting WordPress fatal error when hitting WooCommerce API
- Adding Tracking Details for Advanced Shipment Tracking Plugin From Order Notes
- check shipping amount in woocommerce_after_checkout_validation?
- Is it ok to 301 redirect product-category pages to custom pages?
- how i can limit woo Category number like as ‘posts_per_page’ => -1, but it cannot work please help me
- Update a list of product to featured if product have meta value (Mysql not wpquery)
- WooCommerce related product – only show from primary category
- Woocommerce: Variable Product – get variation name
- Forgot password flow does not work, getting email with a link but after clicking link it’s not working
- Html code is not showing in woocommerce shop page on adding in header.php?
- Is this code collecting user password?
- WordPress Migration
- Importing Attributes in to Woocommerce
- woocomerce products and categories don’t display fixed
- Woocommerce Shipping based on condition and cart value
- Update order status based on condition
- How to bypass Woocommerce checkout validation from the plugin? [closed]
- Category with description and thumbnail
- Issue with Woocommerce and extra field in orders data
- Give auto discount to upsells products
- WooCommerce Table Rates not splitting up
- How can I let the user choose size of a shoe in the store? [closed]
- Hide/show specific products for backend users in woocommerce
- I’d like to add a button under the “Add to Cart” button which says “Buy on Amazon” and links to my Amazon product page [closed]
- If YITH Wishlist page is set to the WooCommerce my-account endpoint, the endpoints stop working all together. Any solution?
- WooCommerce pay per photo upload [closed]
- Woocommerce checkout column total too small can not get it wider [closed]
- Add second price option based on payment method at cart item price
- WordPress 6.1.1 UTF8 Slug Limit Increase
- Create WordPress account on different domain when WooCommerce order completed
- Creating a woocommerce order when a user creates an account
- Fatal error: Uncaught Error: The script tried to modify a property on an incomplete object