WP_Taxonomy::__construct( string $taxonomy, array|string $object_type, array|string $args = array() )


Description Description

See the register_taxonomy() function for accepted arguments for $args.

Top ↑

Parameters Parameters


(string) (Required) Taxonomy key, must not exceed 32 characters.


(array|string) (Required) Name of the object type for the taxonomy object.


(array|string) (Optional) Array or query string of arguments for registering a taxonomy.

Default value: array()

Top ↑

Source Source

File: wp-includes/class-wp-taxonomy.php

	public function __construct( $taxonomy, $object_type, $args = array() ) {
		$this->name = $taxonomy;

		$this->set_props( $object_type, $args );

Top ↑

Changelog Changelog

Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.