Switch language

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




edit_bookmark_link [ WordPress Function ]

edit_bookmark_link ( $link = '', $before = '', $after = '', $bookmark = null )
Parameters:
  • (string) $link Optional. Anchor text.
  • (string) $before Optional. Display before edit link.
  • (string) $after Optional. Display after edit link.
  • (int) $bookmark Optional. Bookmark ID.
Defined at:



Display edit bookmark (literally a URL external to blog) link anchor content.

Source


<?php
function edit_bookmark_link$link ''$before ''$after ''$bookmark null ) {
    
$bookmark get_bookmark($bookmark);

    if ( !
current_user_can('manage_links') )
        return;

    if ( empty(
$link) )
        
$link __('Edit This');

    
$link '<a href="' get_edit_bookmark_link$bookmark ) . '" title="' esc_attr__'Edit Link' ) . '">' $link '</a>';
    echo 
$before apply_filters'edit_bookmark_link'$link$bookmark->link_id ) . $after;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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