comment_author

过滤钩子


apply_filters( 'comment_author', $author, $comment->comment_ID )
参数
  • (string)
    $author
    The comment author’s username.
    Required:
  • (string)
    $comment_ID
    The comment ID as a numeric string.
    Required:
定义位置
  • wp-includes/comment-template.php
    , line 74
引入
4.1.0
弃用

Filters the comment author’s name for display.

echo apply_filters( 'comment_author', $author, $comment->comment_ID );