[wp-hackers] howto delete category via administrator panel
scribu at gmail.com
Fri Mar 12 22:53:28 UTC 2010
On Sat, Mar 13, 2010 at 12:36 AM, Uwiuw Bakawan.com <uwiuw at yahoo.com.sg>wrote:
> i have try 'delete_category' and 'delete_term' but it's only return the ID
> of deleted category.
> Is there any hook to get this id before it get delete or at least got the
> cache of its former child category ID ?
The child category references the parent category, not the other way around.
So all you need is the term_taxonomy_id.
See the wp_term_taxonomy.parent column.
More information about the wp-hackers