WP_REST_Search_Handler::prepare_item_links

Advertisement

Summery Summery

Prepares links for the search result of a given ID.

Syntax Syntax

WP_REST_Search_Handler::prepare_item_links( int $id )

Parameters Parameters

$id

(Required) Item ID.

Return Return

(array) Links for the given item.

Source Source

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

	abstract public function prepare_item_links( $id );

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply