Languages: English • 日本語 中文(简体) • (Add your language)
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 comment loop.
Use get_edit_comment_link to retrieve the url.
<?php edit_comment_link( $link, $before, $after ); ?>
__('Edit This')
Displays edit comment link using defaults.
<?php edit_comment_link(); ?>
Displays edit comment link, with link text "edit comment", in a paragraph (<p>) tag.
<?php edit_comment_link(__('edit comment'), '<p>', '</p>'); ?>
apply_filters() Calls 'edit_comment_link' hook on the author email
Since: 1.0.0
edit_comment_link() is located in wp-includes/link-template.php
Edit Link: edit_post_link(), edit_comment_link(), edit_tag_link(), edit_bookmark_link()