WP_Taxonomy::__construct

Advertisement

Summery Summery

Constructor.

Syntax Syntax

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

Parameters Parameters

$taxonomy

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

$object_type

(Required) Name of the object type for the taxonomy object.

$args

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

Default value: array()

Source Source

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

	 * Whether it is a built-in taxonomy.
	 *
	 * @since 4.7.0
	 * @var bool
	 */

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply