Core Function
View Source on Trac ↗ wp_delete_category()
wp_delete_category( mixed $cat_id ) Deletes one existing category.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $cat_id int | Category term ID. Required |
Return Value
((bool)
(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.
Function Information
Since Version
2.0.0
Source File
wp-includes/taxonomy.php
Advertisement