wp_delete_term ( $term, $taxonomy, $args = array() )

  • (int) $term Term ID.
  • (string) $taxonomy Taxonomy Name.
  • (array|string) $args { Optional. Array of arguments to override the default term ID. Default empty array.
  • (bool|int|WP_Error) True on success, false if term does not exist. Zero on attempted deletion of default Category. WP_Error if the taxonomy does not exist.
Defined at:


Removes a term from the database.

If the term is a parent of other terms, then the children will be updated to that term's parent.

Metadata associated with the term will be deleted.

Related Functions

wp_delete_site, wp_delete_user, wp_delete_category, wpmu_delete_user, wp_create_term

Top Google Results

User discussions

wpseek mobile