Switch language

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




edit_comment_link [ WordPress Function ]

edit_comment_link ( $link = null, $before = '', $after = '' )
Parameters:
  • (string) $link Optional. Anchor text.
  • (string) $before Optional. Display before edit link.
  • (string) $after Optional. Display after edit link.
Returns:
  • (string|null) HTML content, if $echo is set to false.
Defined at:



Display or retrieve edit comment link with formatting.

Source


<?php
function edit_comment_link$link null$before ''$after '' ) {
    global 
$comment;

    if ( !
current_user_can'edit_comment'$comment->comment_ID ) )
        return;

    if ( 
null === $link )
        
$link __('Edit This');

    
$link '<a class="comment-edit-link" href="' get_edit_comment_link$comment->comment_ID ) . '" title="' esc_attr__'Edit comment' ) . '">' $link '</a>';
    echo 
$before apply_filters'edit_comment_link'$link$comment->comment_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