<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>Replace Category names

[ad_1]

Replies: 2

Hi, I have category names like:
SS23
– Woman SS23
– T-shirt woman SS23

In admin they must have this name (not only the slug), but in front end I would like to simplify it into

SS23
– Woman
– T-shirt

So Y could use a preg_replace() in a code snippet to change the names as needed.
But what action should I call to get the categories, replace the names and return them?

Thanks

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer