首页 WordPress函数大全 get_comment_author()

get_comment_author()

2020-05-01 / 6026阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_comment_author( int|WP_Comment $comment_ID )

Retrieves the author of the current comment.

描述

If the comment has an empty comment_author field, then ‘Anonymous’ person is assumed.

参数

$comment_ID

(int|WP_Comment)
(Optional)
WP_Comment or the ID of the comment for which to retrieve the author. Default current comment.

返回

(string) The comment author

大家谈论
    我的见解