W3cubDocs

/WordPress

WP_Post_Type::register_taxonomies()

Registers the taxonomies for the post type.

Source

File: wp-includes/class-wp-post-type.php

public function register_taxonomies() {
		foreach ( $this->taxonomies as $taxonomy ) {
			register_taxonomy_for_object_type( $taxonomy, $this->name );
		}
	}

Changelog

Version Description
4.6.0 Introduced.

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