1. 首页
  2. WordPress钩子手册

comment_form_logged_in_after

do_action( ‘comment_form_logged_in_after’, array $commenter, string $user_identity )

动作钩子::在注释表单中的is_user_logged_in()签入后激发。
Action Hook: Fires after the is_user_logged_in() check in the comment form.

目录锚点:#参数#源码


参数(Parameters)

参数 类型 说明
$commenter (array) 包含评论作者的用户名、电子邮件和URL的数组。
$user_identity (string) 如果注释者是注册用户,则显示名称为空,否则为空。

源码(Source)


更新版本 源码位置 使用 被使用
3.0.0 wp-includes/comment-template.php:2538 1 0

comment_form_logged_in_after 为WP2原创文章,链接:https://www.wp2.cn/hook/comment_form_logged_in_after/