Writing a Plugin that Deletes Tags
-
I’m sort of surprised that, as far as I can tell, WordPress does not seem to have a function that will gracefully delete tags. I’m writing a plugin that is specifically tailored to finding orphaned or irrelevant tags in your blog and deletes them, but I’m not seeing this function which I assumed would naturally be there.
So, here’s the question: is there a function that I’m missing that will delete tags? And if not, is simply deleting the term from the database acceptable? Seems to me that you’d want to delete the relationship between the tag and the posts it was assigned to, for tidiness’ sake, but I haven’t seen any negatives to just pulling out the term.
Thanks for your help!
[moderated–bump removed. Please refrain from bumping as per Forum Rules]
- The topic ‘Writing a Plugin that Deletes Tags’ is closed to new replies.