[wp-hackers] Deleting WordPress Tags
if.website at gmail.com
Sun Feb 22 15:03:36 GMT 2009
On Sun, Feb 22, 2009 at 8:38 AM, Thomas Belknap
<dragonfly at dragonflyeye.net> wrote:
> I am in the process of writing a simple little plugin that finds and allows
> you to delete orphaned tags. I figured I'd just use a WP function that
> deletes tags gracefully, but I was surprised to find that as far as I can
> tell, no such function exists.
You want wp_delete_term( 123, 'post_tag'), where 123 is the ID number
of the tag.
More information about the wp-hackers