Formel  Eins
Formel Eins

Reputation: 1

How to Flush WordPress Permalinks?

  1. I'm trying to do it in WP dashboard - no result.
  2. There is no rewrite_rules string in my DB to flush.
  3. But I have woocommerce_queue_flush_rewrite_rules. If I set it to YES, everything flushed fine. But after some time it become NO again and I have 404 errors.

Is there any way to automatize flushing process?..

Upvotes: 0

Views: 456

Answers (1)

Tanmay Patel
Tanmay Patel

Reputation: 1810

Flush WordPress Permalinks with PHP

To flush WordPress permalinks, you need to copy and paste the code below to your functions.php file:

flush_rewrite_rules();

Upvotes: 0

Related Questions