wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
get_bookmark_field › WordPress Function
Depuis2.3.0
Dépréciéen/a
› get_bookmark_field ( $field, $bookmark, $context = 'display' )
| Paramètres: (3) |
|
| Retourne: |
|
| Défini(e) dans: |
|
| Codex: |
Retrieves single bookmark data item or field.
Fonctions en relation: 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 );
}