comment_notification_notify_author

過濾鉤子
apply_filters( 'comment_notification_notify_author', false, $comment->comment_ID )
引數
  • (bool) $notify Whether to notify the post author of their own comment. Default false.
    Required:
  • (string) $comment_id The comment ID as a numeric string.
    Required:
定義位置
相關勾子
comment_notification_textcomment_notification_headerscomment_notification_subjectcomment_notification_recipientscomment_moderation_text
相關方法
wp_new_comment_notify_postauthorcomment_authorwpmu_welcome_notificationwp_new_comment_notify_moderatorcomment_author_ipget_comments_pagination_arrow
引入
3.8.0
棄用
-

comment_notification_notify_author: 這個過濾鉤子允許開發者控制評論作者是否應該得到新評論的通知。

篩選是否通知評論作者其對自己文章的評論。

預設情況下,評論作者不會被通知他們在自己文章上的評論。此篩選器允許您覆蓋該篩選器<

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$notify_author = apply_filters( ‘comment_notification_notify_author’, false, $comment->comment_ID );
$notify_author = apply_filters( ‘comment_notification_notify_author’, false, $comment->comment_ID );
$notify_author = apply_filters( ‘comment_notification_notify_author’, false, $comment->comment_ID );

常見問題

FAQs
檢視更多 >