WP_REST_Search_Handler::prepare_item_links()
Prepares links for the search result of a given ID.
Method of the class: WP_REST_Search_Handler{}
No Hooks.
Return
Array
. Links for the given item.
Usage
$WP_REST_Search_Handler = new WP_REST_Search_Handler(); $WP_REST_Search_Handler->prepare_item_links( $id );
- $id(int|string) (required)
- Item ID.
Changelog
Since 5.0.0 | Introduced. |
Since 5.6.0 | The $id parameter can accept a string. |
WP_REST_Search_Handler::prepare_item_links() WP REST Search Handler::prepare item links code WP 6.6.2
abstract public function prepare_item_links( $id );