unregister_taxonomy() WP 1.0
Unregisters a taxonomy.
Can not be used to unregister built-in taxonomies.
1 time = 0.000039s = very fast | 50000 times = 0.89s = very fast | PHP 7.0.5, WP 4.5
Hooks from the 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.
Notes
- Global. WP. $wp Current WordPress environment instance.
- Global. Array. $wp_taxonomies List of taxonomies.
Changelog
Since 4.5.0 | Introduced. |
Code of unregister_taxonomy() unregister taxonomy WP 5.6
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()