[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

REST API: WP_REST_Term_Search_Handler class

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

Defines 1 class

WP_REST_Term_Search_Handler:: (4 methods):
  __construct()
  search_items()
  prepare_item()
  prepare_item_links()


Class: WP_REST_Term_Search_Handler  - X-Ref

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

__construct()   X-Ref
Constructor.


search_items( WP_REST_Request $request )   X-Ref
Searches terms for a given search request.

param: WP_REST_Request $request Full REST request.
return: array {

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

param: int   $id     Term ID.
param: array $fields Fields to include for the term.
return: array {

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

param: int $id Item ID.
return: array[] Array of link arrays for the given item.



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref