get_link_to_edit()WP 2.0.0

Retrieves link data based on its ID.

No Hooks.

Return

Object. Link object for editing.

Usage

get_link_to_edit( $link );
$link(int|stdClass) (required)
Link ID or object to retrieve.

Changelog

Since 2.0.0 Introduced.

get_link_to_edit() code WP 6.5.4

function get_link_to_edit( $link ) {
	return get_bookmark( $link, OBJECT, 'edit' );
}