Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




get_bookmark_field [ WordPress Function ]

get_bookmark_field ( $field, $bookmark, $context = 'display' )
Parameters:
  • (string) $field The name of the data field to return
  • (int) $bookmark The bookmark ID to get field
  • (string) $context Optional. The context of how the field will be used.
Uses:
Returns:
  • (string)
Defined at:



Retrieve single bookmark data item or field.

Source


<?php
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);
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics