WP_Post_Type::unregister_taxonomies
Removes the post type from all taxonomies.
Method of the class: WP_Post_Type{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->unregister_taxonomies();
Changelog
| Since 4.6.0 | Introduced. |
WP_Post_Type::unregister_taxonomies() WP Post Type::unregister taxonomies code WP 7.0
public function unregister_taxonomies() {
foreach ( get_object_taxonomies( $this->name ) as $taxonomy ) {
unregister_taxonomy_for_object_type( $taxonomy, $this->name );
}
}