WP_REST_Search_Handler::search_items( WP_REST_Request $request ): array

In this article

Searches the object type content for a given search request.

Parameters

$requestWP_REST_Requestrequired
Full REST request.

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.

Source

abstract public function search_items( WP_REST_Request $request );

Changelog

VersionDescription
5.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.