Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
wp-includes/bookmark.php: get_bookmark() | Retrieve Bookmark data |
This function has been deprecated. Use get_bookmark() instead.
Retrieves bookmark data based on ID.
(int) (Required) ID of link
(string) (Optional) Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A.
Default value: OBJECT
(string) (Optional) How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'.
Default value: 'raw'
(object|array) Bookmark object or array, depending on the type specified by $output
.
File: wp-includes/deprecated.php
function get_link( $bookmark_id, $output = OBJECT, $filter = 'raw' ) { _deprecated_function( __FUNCTION__, '2.1.0', 'get_bookmark()' ); return get_bookmark($bookmark_id, $output, $filter); }
Version | Description |
---|---|
2.1.0 | Use get_bookmark() |
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_link