On this page
WP_REST_Term_Meta_Fields::__construct( string $taxonomy )
Constructor.
Parameters
$taxonomystring 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;
}
Related
Used By
| Used By | Description |
|---|---|
| WP_REST_Terms_Controller::__construct() wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php | Constructor. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_term_meta_fields/__construct