WordPress at a glance
function is not described

get_link() WP 2.0.0

Deprecated in 2.1.0. It is no longer supported and can be removed in future releases. Use get_bookmark() instead.

Retrieves bookmark data based on ID.

  • See: get_bookmark()

No Hooks.


Object/Array. Bookmark object or array, depending on the type specified by $output.


get_link( $bookmark_id, $output, $filter );
$bookmark_id(int) (required)
ID of link
Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A.
Default: OBJECT
How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'.
Default: 'raw'

Code of get link: wp-includes/deprecated.php WP 5.2.2

function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' );
	return get_bookmark($bookmark_id, $output, $filter);