edit_comment_link [ WordPress Function ]
edit_comment_link ( $link = null, $before = '', $after = '' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_comment_link, get_edit_comment_link, get_comments_link, next_comments_link, edit_comment
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ý
- Function Reference/edit comment link « WordPress Codex
Description. Displays a link to edit the current comment, if the user is logged in and allowed to edit the comment. It must be within The Loop, and within a ...
codex.wordpress.org - WordPress › Support » How to modify function edit_comment_link?
I need to modify function edit_comment_link to make it do following: function edit_comment_link( $link = null, $before = '', $after = '' ) { global $comment, $post; ...
wordpress.org - edit_comment_link Wordpress hook details -- Adam Brown, BYU ...
WordPress version history for edit_comment_link ... We find related hooks using word stems. edit_comment_link has 3 significant word stem(s): edit , comment ...
adambrown.info - edit_comment_link() WordPress function reference, arguments and ...
Display or retrieve edit comment link with formatting.
queryposts.com