get_link_to_edit( int|stdClass $link )

Retrieves link data based on its ID.


Parameters

$link

(Required) Link ID or object to retrieve.


Return

(object) Link object for editing.


Source

File: wp-admin/includes/bookmark.php

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


Changelog

Changelog
Version Description
WP-2.0.0 Introduced.