WP_REST_Search_Handler::search_items()publicWP 5.0.0

Searches the object type content for a given search request.

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.

WP_REST_Search_Handler::search_items() code WP 6.3

abstract public function search_items( WP_REST_Request $request );