How can I automatically remove certain words from the automatically generated permalink (it uses
For example: if a new post is created with the title:
How to remove certain words from the Wordpress permalink
I want to have an array of forbidden words like:
And then the slug would be saved automatically as as:
I don't want to affect old posts URLs just the new published ones.
I found plugins but they are too heavy, with millions of functions I just want to know how to modify the permalink while saving the post.