W3cubDocs

/WordPress

WP_Post_Type::unregister_taxonomies()

Removes the post type from all taxonomies.

Source

public function unregister_taxonomies() {
	foreach ( get_object_taxonomies( $this->name ) as $taxonomy ) {
		unregister_taxonomy_for_object_type( $taxonomy, $this->name );
	}
}

Changelog

Version Description
4.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_post_type/unregister_taxonomies