Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_delete_category [ WordPress Function ]

wp_delete_category ( $cat_ID )
Parameters:
  • (int) $cat_ID
Uses:
Returns:
  • (mixed) 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:



Deletes one existing category.

Source


<?php
function wp_delete_category$cat_ID ) {
    return 
wp_delete_term$cat_ID'category' );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics