get_link()
Deprecated since 2.1.0. It is no longer supported and may be removed in future releases. Use get_bookmark() instead.
Retrieves bookmark data based on ID.
No Hooks.
Returns
Object|Array. Bookmark object or array, depending on the type specified by $output.
Usage
get_link( $bookmark_id, $output, $filter );
- $bookmark_id(int) (required)
- ID of link.
- $output(string)
- Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A.
Default: OBJECT - $filter(string)
- How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'.
Default: 'raw'
Notes
- See: get_bookmark()
Changelog
| Since 2.0.0 | Introduced. |
| Deprecated since 2.1.0 | Use get_bookmark() |
get_link() get link code WP 6.8.3
function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) {
_deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' );
return get_bookmark($bookmark_id, $output, $filter);
}