WP_Taxonomy::__construct() – Constructor.
You appear to be a bot. Output may be restricted
Description
Constructor.
See the register_taxonomy() function for accepted arguments for `$args`.
Usage
WP_Taxonomy::__construct( $taxonomy, $object_type, $args );
Parameters
- $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 – Optional. Array or query string of arguments for registering a taxonomy. Default empty array.
Returns
void
Source
File name: wordpress/wp-includes/class-wp-taxonomy.php
Lines:
1 to 5 of 5
public function __construct( $taxonomy, $object_type, $args = array() ) { $this->name = $taxonomy; $this->WP_Taxonomy::set_props( $object_type, $args ); }