Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_delete_category ›

Da2.0.0
Deprecaton/a
wp_delete_category ( $cat_ID )
Parametri:
  • (int) $cat_ID Category term ID.
    Richiesto:
Ritorna:
  • (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.
Definito a:
Codex:

Deletes one existing category.



Sorgenti

function wp_delete_category( $cat_ID ) {
	return wp_delete_term( $cat_ID, 'category' );
}