Rewriting post slug before post save
The following is to be taken more as a proof of concept rather than a copy/paste-ready solution. That being said, this is how you’d go about it: The save_post action runs whenever a post is updated or created. You can hook a callback function to it using add_action. Hence, your case would have to look … Read more