edit_comment_link

POST LINK TAG

What It Does

If a user with permissions to edit a comment is logged in, edit_comment_link will display a link to edit the comment in the admin area. edit_comment_link must be used within The Loop.

Code

<?php edit_comment_link(‘anchor’, ‘before’, ‘after’); ?>

Achor

The anchor text to use for the link.

Before

What text to be displayed before the link.

After

What text to be displayed after the link.

Example

The default usage is as follows:

<?php edit_comment_link(); ?>

The link can be customized as follows:

<?php edit_comment_link(‘Edit This Comment’, ‘<strong>’, ‘</strong>’); ?>