flush_rewrite_rules on save_post Does Not Work on First Post Save
I know this has already been answered, but I felt as if it wasn’t 100% real clear what the actual solution was. Here’s my answer to add some clarification. He’s right… You can’t flush rewrite rules on save_post, because that action hook is fired AFTER the init action hook has been fired. As you know, … Read more