WordPress at a glance
function is not described

WP_REST_Search_Handler::search_items() public WP 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.

Return

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.

Usage

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

Changelog

Since 5.0.0 Introduced.

Code of WP_REST_Search_Handler::search_items() WP 5.5.2

<?php
abstract public function search_items( WP_REST_Request $request );