Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_delete_category ›

Desde2.0.0
Obsoleton/a
wp_delete_category ( $cat_ID )
Parâmetros:
  • (int) $cat_ID Category term ID.
    Required: Yes
Retorna:
  • (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.
Definido em:
Codex:

Deletes one existing category.



Fonte

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