Definition:
function wp_delete_category( $cat_ID ) {}
Deletes one existing category.
Parameters
- int $cat_ID
Return values
returns: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.
Source code
function wp_delete_category( $cat_ID ) {
return wp_delete_term( $cat_ID, 'category' );
}
10692

February 24, 2011 


No comments yet... Be the first to leave a reply!