WP_REST_Search_Handler::get_type() WordPress Method

The WP_REST_Search_Handler::get_type() method is used to get the search type for a given request. This can be used to determine the search type for a given request, and is used by the default search handler to limit the search type for a given request.

WP_REST_Search_Handler::get_type() #

Gets the object type managed by this search handler.


Return

(string) Object type identifier.


Top ↑

Source

File: wp-includes/rest-api/search/class-wp-rest-search-handler.php

	public function get_type() {
		return $this->type;
	}

Top ↑

Changelog

Changelog
VersionDescription
5.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.