wpseek.com
A WordPress-centric search engine for devs and theme authors
get_bookmark_field › WordPress Function
Since2.3.0
Deprecatedn/a
› get_bookmark_field ( $field, $bookmark, $context = 'display' )
Parameters: (3) |
|
Returns: |
|
Defined at: |
|
Codex: |
Retrieves single bookmark data item or field.
Related Functions: get_bookmark, sanitize_bookmark_field, get_bookmarks, edit_bookmark_link, get_edit_bookmark_link
Source
function get_bookmark_field( $field, $bookmark, $context = 'display' ) {
$bookmark = (int) $bookmark;
$bookmark = get_bookmark( $bookmark );
if ( is_wp_error( $bookmark ) ) {
return $bookmark;
}
if ( ! is_object( $bookmark ) ) {
return '';
}
if ( ! isset( $bookmark->$field ) ) {
return '';
}
return sanitize_bookmark_field( $field, $bookmark->$field, $bookmark->link_id, $context );
}