wp_delete_category


wp_delete_category ( $cat_id )

Parameters:
  • (int) cat_id Category term ID.
Returns:
  • (bool|int|WP_Error) Returns true if completes delete action; false if term doesn't exist; Zero on attempted deletion of default Category; WP_Error object is also a possibility.
Defined at:

Description

Deletes one existing category.

Related Functions

wp_create_category, wp_update_category, wp_delete_term, wp_insert_category, wp_delete_site

Top Google Results

User discussions

wpseek mobile