WP_REST_Post_Format_Search_Handler::prepare_item_links()publicWP 5.6.0

Prepares links for the search result.

Method of the class: WP_REST_Post_Format_Search_Handler{}

No Hooks.

Return

Array. Links for the given item.

Usage

$WP_REST_Post_Format_Search_Handler = new WP_REST_Post_Format_Search_Handler();
$WP_REST_Post_Format_Search_Handler->prepare_item_links( $id );
$id(string) (required)
Item ID, the post format slug.

Changelog

Since 5.6.0 Introduced.

WP_REST_Post_Format_Search_Handler::prepare_item_links() code WP 6.1.1

public function prepare_item_links( $id ) {
	return array();
}