Languages: English • Reference/get bookmark 日本語 (Add your language)
Retrieve Bookmark data based on bookmark link ID.
<?php get_bookmark( $bookmark, $output, $filter ) ?>
<?php $bookmark = get_bookmark(5); echo $bookmark->link_name; ?>
or:
<?php echo get_bookmark(5)->link_name; ?>
<?php $bookmark = get_bookmark(5); echo '<a href="'.$bookmark->link_url.'">'.$bookmark->link_name.'</a>'; ?>
Since: 2.1.0
get_bookmark() is located in wp-includes/bookmark.php
.
get_bookmark(), get_bookmark_field(), get_bookmarks(), wp_list_bookmarks()