• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress core a2z

WordPress core a2z

WordPress core only

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WP_Taxonomy::__construct() – Constructor.

You appear to be a bot. Output may be restricted

Description

Constructor.

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 );
  }
 

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: WP_Taxonomy::__construct
Class ref: WP_Taxonomy
Plugin ref: WordPress
Version: 5.6.2
Sourcefile: wp-includes/class-wp-taxonomy.php
File ref: wp-includes/class-wp-taxonomy.php
Deprecated?: No
API Letters: C,T,W

Footer

WP-a2z
WordPress core a2z
WordPress core only
WordPress 5.6.2
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites