get_comment_author

過濾鉤子
apply_filters( 'get_comment_author', $author, $comment_ID, $comment )
引數
  • (string) $author The comment author's username.
    Required:
  • (string) $comment_ID The comment ID as a numeric string.
    Required:
  • (WP_Comment) $comment The comment object.
    Required:
定義位置
相關勾子
get_comment_author_ipget_comment_author_urlget_comment_author_linkcomment_authorget_comment_author_email
相關方法
get_comment_authorget_comment_author_ipget_comment_author_rssget_comment_author_urlget_comment_author_linkcomment_author
引入
4.1.0
棄用
-

get_comment_author: 這個函式檢索給定評論的作者姓名: 該函式接受一個引數,即評論ID,並返回一個代表作者姓名的字串。

過濾返回的註釋作者名稱。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
return apply_filters( 'get_comment_author', $author, $comment_ID, $comment );
return apply_filters( 'get_comment_author', $author, $comment_ID, $comment );
return apply_filters( 'get_comment_author', $author, $comment_ID, $comment );

常見問題

FAQs
檢視更多 >