Title: wp-admin/includes/taxonomy.php | Developer.WordPress.org

---

# File: wp-admin/includes/taxonomy.php

 * function[category_exists()](https://developer.wordpress.org/reference/functions/category_exists/)
 * Checks whether a category exists.
 * Used by [2 functions](https://developer.wordpress.org/reference/functions/category_exists/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/category_exists/#uses)
   | Source: [wp-admin/includes/taxonomy.php:24](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L24-L30)
 * function[get_category_to_edit()](https://developer.wordpress.org/reference/functions/get_category_to_edit/)
 * Gets category object for given ID and ‘edit’ filter context.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_category_to_edit/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/get_category_to_edit/#uses)
   | Source: [wp-admin/includes/taxonomy.php:40](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L40-L44)
 * function[wp_create_category()](https://developer.wordpress.org/reference/functions/wp_create_category/)
 * Adds a new category to the database if it does not already exist.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_create_category/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_create_category/#uses)
   | Source: [wp-admin/includes/taxonomy.php:55](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L55-L67)
 * function[wp_create_categories()](https://developer.wordpress.org/reference/functions/wp_create_categories/)
 * Creates categories for the given post.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_create_categories/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/functions/wp_create_categories/#uses)
   | Source: [wp-admin/includes/taxonomy.php:78](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L78-L97)
 * function[wp_insert_category()](https://developer.wordpress.org/reference/functions/wp_insert_category/)
 * Updates an existing Category or creates a new Category.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/wp_insert_category/#used-by)
   | Uses [8 functions](https://developer.wordpress.org/reference/functions/wp_insert_category/#uses)
   | Source: [wp-admin/includes/taxonomy.php:121](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L121-L175)
 * function[wp_update_category()](https://developer.wordpress.org/reference/functions/wp_update_category/)
 * Aliases wp_insert_category() with minimal args.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_update_category/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/functions/wp_update_category/#uses)
   | Source: [wp-admin/includes/taxonomy.php:188](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L188-L206)
 * function[tag_exists()](https://developer.wordpress.org/reference/functions/tag_exists/)
 * Checks whether a post tag with a given name exists.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/tag_exists/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/tag_exists/#uses)
   | Source: [wp-admin/includes/taxonomy.php:222](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L222-L224)
 * function[wp_create_tag()](https://developer.wordpress.org/reference/functions/wp_create_tag/)
 * Adds a new tag to the database if it does not already exist.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/wp_create_tag/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/wp_create_tag/#uses)
   | Source: [wp-admin/includes/taxonomy.php:234](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L234-L236)
 * function[get_tags_to_edit()](https://developer.wordpress.org/reference/functions/get_tags_to_edit/)
 * Gets comma-separated list of tags available to edit.
 * Used by [0 functions](https://developer.wordpress.org/reference/functions/get_tags_to_edit/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/functions/get_tags_to_edit/#uses)
   | Source: [wp-admin/includes/taxonomy.php:247](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L247-L249)
 * function[get_terms_to_edit()](https://developer.wordpress.org/reference/functions/get_terms_to_edit/)
 * Gets comma-separated list of terms available to edit for the given post ID.
 * Used by [3 functions](https://developer.wordpress.org/reference/functions/get_terms_to_edit/#used-by)
   | Uses [7 functions](https://developer.wordpress.org/reference/functions/get_terms_to_edit/#uses)
   | Source: [wp-admin/includes/taxonomy.php:260](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L260-L298)
 * hook[terms_to_edit](https://developer.wordpress.org/reference/hooks/terms_to_edit/)
 * Filters the comma-separated list of terms available to edit.
 * Used by [1 function](https://developer.wordpress.org/reference/hooks/terms_to_edit/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/hooks/terms_to_edit/#uses)
   | Source: [wp-admin/includes/taxonomy.php:295](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L295-L295)
 * function[wp_create_term()](https://developer.wordpress.org/reference/functions/wp_create_term/)
 * Adds a new term to the database if it does not already exist.
 * Used by [1 function](https://developer.wordpress.org/reference/functions/wp_create_term/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/functions/wp_create_term/#uses)
   | Source: [wp-admin/includes/taxonomy.php:309](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-admin/includes/taxonomy.php#L309-L316)