A WordPress-centric search engine for devs and theme authors



get_link ›

Since2.0.0
Deprecated2.1.0
get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
Parameters: (3)
  • (int) $bookmark_id ID of link
    Required: Yes
  • (string) $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
    Required: No
    Default: OBJECT
  • (string) $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
    Required: No
    Default: 'raw'
See:
Returns:
  • (object|array) Bookmark object or array, depending on the type specified by `$output`.
Defined at:
Codex:

Retrieves bookmark data based on ID.



Source

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