Uses
Uses | Description |
---|---|
wp-includes/taxonomy.php: register_taxonomy_for_object_type() | Add an already registered taxonomy to an object type. |
Registers the taxonomies for the post type.
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 ); } }
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