author_email

過濾鉤子
apply_filters( 'author_email', $author_email, $comment->comment_ID )
引數
  • (string) $author_email The comment author's email address.
    Required:
  • (string) $comment_ID The comment ID as a numeric string.
    Required:
定義位置
相關勾子
author_linkget_comment_author_emailpre_comment_author_emailauto_core_update_emailauthor_feed_link
相關方法
the_author_emailcomment_author_emailget_the_author_emailauthor_canthe_author_aimget_comment_author_email
引入
4.1.0
棄用
-

author_email。這個過濾器允許開發者修改WordPress中作者的電子郵件地址。這可以用來改變顯示在作者身上的電子郵件地址,或者為作者新增額外的電子郵件地址。

過濾顯示評論作者的電子郵件。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
echo apply_filters( 'author_email', $author_email, $comment->comment_ID );
echo apply_filters( 'author_email', $author_email, $comment->comment_ID );
echo apply_filters( 'author_email', $author_email, $comment->comment_ID );

常見問題

FAQs
檢視更多 >