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 – 這個過濾鉤子允許開發者修改評論表單中登入使用者的內容。

過濾評論表格中顯示的”已登入”資訊。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );
echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );
echo apply_filters( 'comment_form_logged_in', $args['logged_in_as'], $commenter, $user_identity );

常見問題

FAQs
檢視更多 >