Retrieves bookmark data based on ID.
Description
See also
Parameters
$bookmark_id
intrequired- ID of link
$output
stringoptional- Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A.
Default:
OBJECT
$filter
stringoptional- How to filter the link for output. Accepts
'raw'
,'edit'
,'attribute'
,'js'
,'db'
, or'display'
. Default'raw'
.Default:
'raw'
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);
}
Changelog
Version | Description |
---|---|
2.1.0 | Use get_bookmark() |
2.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.