W3cubDocs

/WordPress

apply_filters( ‘get_edit_comment_link’, string $location, int $comment_id, string $context )

Filters the comment edit link.

Parameters

$locationstring
The edit link.
$comment_idint
Unique ID of the comment to generate an edit link.
$contextstring
Context to include HTML entities in link. Default 'display'.

Source

return apply_filters( 'get_edit_comment_link', $location, $comment_id, $context );

Changelog

Version Description
6.7.0 The $comment_id and $context parameters are now being passed to the filter.
2.3.0 Introduced.

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