WordPress at a glance
function is not described

WP_REST_Term_Search_Handler::__construct() public WP 5.6.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

$WP_REST_Term_Search_Handler = new WP_REST_Term_Search_Handler();
$WP_REST_Term_Search_Handler->__construct();

Changelog

Since 5.6.0 Introduced.

Code of WP_REST_Term_Search_Handler::__construct() WP 5.7.2

<?php
public function __construct() {
	$this->type = 'term';

	$this->subtypes = array_values(
		get_taxonomies(
			array(
				'public'       => true,
				'show_in_rest' => true,
			),
			'names'
		)
	);
}