Right, I’m back after the break as I was busy in a stack overflow.Today I’m a going to go over how to replace some text or suffix in WordPress taxonomies. I have noticed in my experience that to solve some small issues take too much time to think that how to do it and this is also one kind of this thing.
WPML plugin adds language code suffixes after the taxonomy if such taxonomy entry exists and adds this @lang suffix because WordPress doesn’t allow duplicate taxonomy name. so here I am going to explain how to remove that suffix from taxonomies in WordPress.
Let’s understand by code
you can change above code as per your requirement.Ok, that’s it. I hope you enjoyed this tutorial.