edit_comment_link

过滤钩子


apply_filters( 'edit_comment_link', $link, $comment->comment_ID, $text )
参数
  • (string)
    $link
    Anchor tag for the edit link.
    Required:
  • (string)
    $comment_id
    Comment ID as a numeric string.
    Required:
  • (string)
    $text
    Anchor text.
    Required:
定义位置
  • wp-includes/link-template.php
    , line 1641
引入
2.3.0
弃用

Filters the comment edit link anchor tag.

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