WP_REST_Term_Search_Handler::__construct()

In this article

Constructor.

Source

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

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

Changelog

VersionDescription
5.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.