WP_REST_Term_Meta_Fields::__construct( string $taxonomy )
Constructor.
Parameters
-
$taxonomy
string Required -
Taxonomy to register fields for.
Source
File: wp-includes/rest-api/fields/class-wp-rest-term-meta-fields.php
.
View all references
public function __construct( $taxonomy ) {
$this->taxonomy = $taxonomy;
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |