unregister_taxonomy() WP 1.0
Unregisters a taxonomy.
Can not be used to unregister built-in taxonomies.
- Global. WP.
$wp
Current WordPress environment instance. - Global. Array.
$wp_taxonomies
List of taxonomies.
✈ 1 time = 0.000039s = very fast | 50000 times = 0.89s = very fast | PHP 7.0.5, WP 4.5
Hooks in function
Return
true/false/WP_Error. True on success, WP_Error on failure or if the taxonomy doesn't exist.
Usage
unregister_taxonomy( $taxonomy );
- $taxonomy(string) (required)
- Taxonomy name.
Code of unregister taxonomy:
wp-includes/taxonomy.php
VER 5.0.3
Related Functions
From category: Any taxonomy
- edit_term_link()
- get_edit_term_link()
- get_taxonomies()
- get_taxonomy()
- get_term()
- get_term_by()
- get_term_children()
- get_term_field()
- get_term_link()