comment_form_logged_in_after

動作鉤子
do_action( 'comment_form_logged_in_after', $commenter, $user_identity )
引數
  • (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_incomment_form_must_log_in_aftercomment_form_aftercomment_flood_filtercomment_form_field_name
相關方法
comment_form_titlecomments_link_feedcomment_footer_diecomment_author_linkget_comment_to_editcomment_form
引入
3.0.0
棄用
-

comment_form_logged_in_after – 這個動作鉤子是在評論表單中登入使用者的內容之後呼叫。它允許開發者在評論表單中為登入使用者新增自定義內容或功能。

在評論表單的is_user_logged_in()檢查之後啟動。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
do_action( 'comment_form_logged_in_after', $commenter, $user_identity );
do_action( 'comment_form_logged_in_after', $commenter, $user_identity );
do_action( 'comment_form_logged_in_after', $commenter, $user_identity );

常見問題

FAQs
檢視更多 >