WP_Post_Type::register_taxonomies()
Registers the taxonomies for the post type.
Method of the class: WP_Post_Type{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->register_taxonomies();
Changelog
Since 4.6.0 | Introduced. |
WP_Post_Type::register_taxonomies() WP Post Type::register taxonomies code WP 6.6.2
public function register_taxonomies() { foreach ( $this->taxonomies as $taxonomy ) { register_taxonomy_for_object_type( $taxonomy, $this->name ); } }