[ Index ]

PHP Cross Reference of WordPress




/wp-includes/rest-api/search/ -> class-wp-rest-term-search-handler.php (summary)

REST API: WP_REST_Term_Search_Handler class

File Size: 156 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_REST_Term_Search_Handler:: (4 methods):

Class: WP_REST_Term_Search_Handler  - X-Ref

Core class representing a search handler for terms in the REST API.

__construct()   X-Ref

since: 5.6.0

search_items( WP_REST_Request $request )   X-Ref
Searches the object type content for a given search request.

return: array Associative array containing an `WP_REST_Search_Handler::RESULT_IDS` containing
since: 5.6.0
param: WP_REST_Request $request Full REST request.

prepare_item( $id, array $fields )   X-Ref
Prepares the search result for a given ID.

return: array Associative array containing all fields for the item.
since: 5.6.0
param: int   $id     Item ID.
param: array $fields Fields to include for the item.

prepare_item_links( $id )   X-Ref
Prepares links for the search result of a given ID.

return: array Links for the given item.
since: 5.6.0
param: int $id Item ID.

Generated: Mon Jun 27 01:00:02 2022 Cross-referenced by PHPXref 0.7.1