WP_REST_Search_Handler::search_items()publicWP 5.0.0

Searches the object type content for a given search request.

{} It's a method of the class: WP_REST_Search_Handler{}

No Hooks.


Array. Associative array containing an 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.


$WP_REST_Search_Handler = new WP_REST_Search_Handler();
$WP_REST_Search_Handler->search_items( $request );
$request(WP_REST_Request) (required)
Full REST request.


Since 5.0.0 Introduced.

Code of WP_REST_Search_Handler::search_items() WP 5.9.3

abstract public function search_items( WP_REST_Request $request );