[wp-hackers] Get Term Data Before Deletion

Ryan Fitzer ryanfitzer at gmail.com
Mon Sep 13 00:54:48 UTC 2010


I'm trying to find a hook that will give me a term's slug before it is deleted.

I'm using the delete_{$taxonomy} hook so when a term gets deleted I
can update my theme's options. The problem is that I need the slug. By
the time delete_{$taxonomy} runs, the term has been deleted from the
db (taxonomy.php line 1406). This means get_term() can't retrieve the
term slug.

Anyone know of a way around this?

-- 
Ryan Fitzer
Los Angeles, CA
http://www.ryanpatrickfitzer.com


More information about the wp-hackers mailing list