get_link
- get_link is deprecated since version 2.1.0!
Alternative: get_bookmark()
get_link ( $bookmark_id, $output = OBJECT, $filter = 'raw' )
Parameters:- (int) bookmark_id ID of link
- (string) output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT.
- (string) filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'.
See:Returns:- (object|array) Bookmark object or array, depending on the type specified by `$output`.
Defined at: - Introduced in WordPress: 2.0.0
- Deprecated in WordPress: 2.1.0
Description
Retrieves bookmark data based on ID.