Hi I need a simple piece of code to delete a category for a custom plugin, but I just found two function references that seems quite the same:
Function Reference: wp_delete_term
Description: Removes a term from the database.
Usage: <?php wp_delete_term( $term_id, $taxonomy, $args ) ?>
Function Reference: wp_delete_category
Description: Deletes one existing category.
Usage: <?php wp_delete_category( $cat_ID ) ?>
My question is which one I should use (just for delete a category), and what is exactly the difference (or what makes one option better than the other).
I'm thinking that the "category" is a "term" and that wp_delete_category() uses wp_delete_term() so I should use wp_delete_term() - I'm right on that or I'm missing something.
Thanks