WP_Taxonomy::__construct

SummerySummery

Constructor.

Syntax

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

ParametersParameters

$taxonomy

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

$object_type

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

$args

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

Default value: array()

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
4.7.0 Introduced.
Scroll to Top