Prepares the search result for a given ID.
$idint|stringrequired
$fieldsarrayrequired
abstract public function prepare_item( $id, array $fields );
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_search_handler/prepare_item