unregister_taxonomy()
Unregisters a taxonomy.
Can not be used to unregister built-in taxonomies.
1 time — 0.000039 sec (very fast) | 50000 times — 0.89 sec (very fast) | PHP 7.0.5, WP 4.5
Hooks from the function
Return
true|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. WP_Taxonomy[]. $wp_taxonomies List of taxonomies.
Changelog
Since 4.5.0 | Introduced. |