comment_form_logged_in

过滤钩子
apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity )
参数
  • (string) $args_logged_in The HTML for the 'logged in as [user]' message, the Edit profile link, and the Log out link.
    Required:
  • (array) $commenter An array containing the comment author's username, email, and URL.
    Required:
  • (string) $user_identity If the commenter is a registered user, the display name, blank otherwise.
    Required:
定义位置
相关勾子
comment_form_logged_in_aftercomment_form_topcomment_form_must_log_in_aftercomment_formcomment_form_field_comment
相关方法
comment_formcomment_form_titlecomment_footer_diecomment_author_linkcomments_rss_linkcomment_reply_link
引入
3.0.0
弃用
-

comment_form_logged_in – 这个过滤钩子允许开发者修改评论表单中登录用户的内容。

过滤评论表格中显示的”已登录”信息。

echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );

常见问题

FAQs
查看更多 >
闪电伯伯

(工作日 10:00 - 18:30 为您服务)

2025-11-18 12:27:27

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: