Core Function
View Source on Trac ↗ get_link()
get_link( mixed $bookmark_id, mixed $output = OBJECT, mixed $filter = 'raw' ) Retrieves bookmark data based on ID.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $bookmark_id int | ID of link Required |
| string | $output Optional. Type of output. Accepts OBJECT, ARRAY_N, or ARRAY_A. Default OBJECT. Required |
| string | $filter Optional. How to filter the link for output. Accepts 'raw', 'edit', 'attribute', 'js', 'db', or 'display'. Default 'raw'. Required |
Return Value
((object)
| array) Bookmark object or array, depending on the type specified by `$output`.
Function Information
Since Version
2.0.0
Source File
wp-includes/deprecated.php
Advertisement