WordPress at a glance
function is not described

WP_REST_Term_Meta_Fields::__construct() public WP 4.7.0

Constructor.

{} It's a method of the class: WP_REST_Term_Meta_Fields{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_REST_Term_Meta_Fields = new WP_REST_Term_Meta_Fields();
$WP_REST_Term_Meta_Fields->__construct( $taxonomy );
$taxonomy(string) (required)
Taxonomy to register fields for.

Changelog

Since 4.7.0 Introduced.

Code of WP_REST_Term_Meta_Fields::__construct() WP 5.5.1

<?php
public function __construct( $taxonomy ) {
	$this->taxonomy = $taxonomy;
}