Uses
Uses | Description |
---|---|
wp-includes/class-wp-taxonomy.php: WP_Taxonomy::set_props() | Sets taxonomy properties. |
Constructor.
(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()
File: wp-includes/class-wp-taxonomy.php
public function __construct( $taxonomy, $object_type, $args = array() ) { $this->name = $taxonomy; $this->set_props( $object_type, $args ); }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_taxonomy/__construct