W3cubDocs

/WordPress

apply_filters( ‘edit_comment_link’, string $link, string $comment_id, string $text )

Filters the comment edit link anchor tag.

Parameters

$linkstring
Anchor tag for the edit link.
$comment_idstring
Comment ID as a numeric string.
$textstring
Anchor text.

Source

echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;

Changelog

Version Description
2.3.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/edit_comment_link