WP_REST_Search_Handler::search_items

Advertisement

Summery Summery

Searches the object type content for a given search request.

Syntax Syntax

WP_REST_Search_Handler::search_items( WP_REST_Request $request )

Parameters Parameters

$request

(WP_REST_Request) (Required) Full REST request.

Return 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 Source

File: wp-includes/rest-api/search/class-wp-rest-search-handler.php

	abstract public function search_items( WP_REST_Request $request );

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.