WP_REST_Search_Handler::prepare_item_links( int|string $id ): array

In this article

Prepares links for the search result of a given ID.

Parameters

$idint|stringrequired
Item ID.

Return

array Links for the given item.

Source

abstract public function prepare_item_links( $id );

Changelog

VersionDescription
5.6.0The $id parameter can accept a string.
5.0.0Introduced.

User Contributed Notes

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