WP_Post_Type::unregister_taxonomies() WordPress Method
The WP_Post_Type::unregister_taxonomies() function can be used to unregister taxonomies for a post type. This function takes a single argument, the post type for which you want to unregister the taxonomies.
WP_Post_Type::unregister_taxonomies() #
Removes the post type from all taxonomies.
Source
File: wp-includes/class-wp-post-type.php
public function unregister_taxonomies() {
foreach ( get_object_taxonomies( $this->name ) as $taxonomy ) {
unregister_taxonomy_for_object_type( $taxonomy, $this->name );
}
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |