How can i edit all posts slug in bulk keeping WP native redirect?
When i edit a single post slug the old url redirects to the new one automatically.
I need to do this in bulk.
There is a text that appears on thousands of permalinks and i want to remove it from them all and keep wp native redirect, because this text appears in random places i cannot make an htaccess rule for all posts.
So for example:
http://example.com/cpt1/hello-world-unwanted-word/ http://example.com/cpt2/unwanted-word-hello-world/ http://example.com/cpt3/hello-unwanted-word-world/
http://example.com/cpt1/hello-world/ http://example.com/cpt2/hello-world/ http://example.com/cpt3/hello-world/
If someone access the old url redirect to the new one.