Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: wp_delete_term() | Removes a term from the database. |
Deletes one existing category.
(int) (Required) Category term ID.
(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.
File: wp-includes/taxonomy.php
function wp_delete_category( $cat_ID ) { return wp_delete_term( $cat_ID, 'category' ); }
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_delete_category