How to check wp_options’s rewrite_rules if current and existing are the same before flush the rules?
Here’s the trick I’ve been using: Use an array to store the rewrites Hash the array Store the hashed array as an option Check to see if the stored option matches the curret rewrite hash; if not, update the rewrites Greatly simplified code snippet (this is meant as a starting point, not a finished product): … Read more