Core Function
View Source on Trac ↗ get_bookmark()
get_bookmark( mixed $bookmark, mixed $output = OBJECT, mixed $filter = 'raw' ) Retrieves bookmark data.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (int | | stdClass) $bookmark Required |
| string | $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which correspond to an stdClass object, an associative array, or a numeric array, respectively. Default OBJECT. Required |
| $filter string | Optional. How to sanitize bookmark fields. Default 'raw'. |
Return Value
((array)
| object | null) Type returned depends on $output value.
Function Information
Since Version
2.1.0
Source File
wp-includes/bookmark.php
Advertisement