wp_delete_term


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

Parameters:
  • (int) $term Term ID.
  • (string) $taxonomy Taxonomy Name.
  • (array|string) $args { Optional. Array of arguments to override the default term ID. Default empty array.
Returns:
  • (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:

Description

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_user, wp_delete_category, wpmu_delete_user, wp_update_term, wp_create_term

Top Google Results

User discussions

wpseek mobile