Codex

Template Tags/edit comment link

Contents

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 comment loop.

Usage

 <?php edit_comment_link('link''before''after'); ?> 

Examples

Default Usage

Displays edit comment link using defaults.

<?php edit_comment_link(); ?>

Displays Edit Comment in Paragraph Tag

Displays edit comment link, with link text "edit comment", in a paragraph (<p>) tag.

<?php edit_comment_link('edit comment', '<p>', '</p>'); ?>

Parameters

link 
(string) The link text. Defaults to 'Edit This'.
before 
(string) Text to put before the link text. There is no default.
after 
(string) Text to put after the link text. There is no default.

Related

edit_post_link, edit_comment_link, link_pages, wp_link_pages, get_year_link, get_month_link, get_day_link

How to pass parameters to tags with PHP function-style parameters

Go to Template Tag index