Searches the object type content for a given search request.
$requestWP_REST_Requestrequired
WP_REST_Search_Handler::RESULT_IDS containing an array of found IDs and WP_REST_Search_Handler::RESULT_TOTAL containing the total count for the matching search results.abstract public function search_items( WP_REST_Request $request );
| Version | Description |
|---|---|
| 5.0.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_search_handler/search_items