edit_comment_link filter-hook . WP 2.3.0
Filters the comment edit link anchor tag.
Usage
add_filter( 'edit_comment_link', 'filter_function_name_3291', 10, 3 ); function filter_function_name_3291( $link, $comment_id, $text ){ // filter... return $link; }
- $link(string)
- Anchor tag for the edit link.
- $comment_id(int)
- Comment ID.
- $text(string)
- Anchor text.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
edit_comment_link
wp-includes/link-template.php 1554
echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text ) . $after;