notify_moderator

過濾鉤子
apply_filters( 'notify_moderator', $maybe_notify, $comment_id )
引數
  • (bool) $maybe_notify Whether to notify blog moderator.
    Required:
  • (int) $comment_ID The id of the comment for the notification.
    Required:
定義位置
相關勾子
notify_post_authorcomment_moderation_headersthe_modified_authorcomment_moderation_textthe_generator
相關方法
wp_notify_moderatorwp_new_comment_notify_moderatorwp_notify_postauthorthe_modified_authorthe_generatortimer_stop
引入
4.4.0
棄用
-

notify_moderator是一個WordPress的動作鉤子,當一個評論被保留下來進行稽覈時就會被觸發。該鉤子以評論ID為引數被呼叫,可以用來在評論被保留稽覈時向網站的版主傳送電子郵件通知。

過濾是否傳送站點主持人電子郵件通知,覆蓋站點設定。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );

常見問題

FAQs
檢視更多 >