Core Class
View Source on Trac ↗
Core Class
WP_REST_Post_Format_Search_Handler
class WP_REST_Post_Format_Search_Handler
// Constructor: function Object() { [native code] } Core class representing a search handler for post formats in the REST API.
Methods 4 methods
| Method / Return | Description |
|---|---|
| __construct() void | Constructor. |
| search_items() array | Searches the post formats for a given search request.
Parameters: $request: WP_REST_Request |
| prepare_item() array | Prepares the search result for a given post format.
Parameters: $id: mixed, $fields: array |
| prepare_item_links() array | Prepares links for the search result.
Parameters: $id: mixed |
Class Information
Since Version
5.6.0
Source File
wp-includes/rest-api/search/class-wp-rest-post-format-search-handler.php
Advertisement