Function Reference/get bookmark
Description
Retrieve Bookmark data based on bookmark link ID.
Usage
<?php get_bookmark( $bookmark, $output, $filter ) ?>
Parameters
- $output
- (string) (optional) Either OBJECT, ARRAY_N, or ARRAY_A constant
- Default: OBJECT
- $filter
- (string) (optional) default is 'raw'.
- Default: 'raw'
Return Values
- (array|object)
- Type returned depends on $output value.
Examples
Notes
- Uses global: (object) $wpdb Database Object
Change Log
Since: 2.1.0
Source File
get_bookmark() is located in wp-includes/bookmark.php.
Related
wp_list_bookmarks,
get_bookmarks,
get_bookmark,
get_bookmark_field