On this page
apply_filters( 'notify_moderator', bool $maybe_notify, int $comment_ID )
Filters whether to send the site moderator email notifications, overriding the site setting.
Parameters
$maybe_notifybool-
Whether to notify blog moderator.
$comment_IDint-
The id of the comment for the notification.
Source
File: wp-includes/pluggable.php. View all references
$maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );
Related
Used By
| Used By | Description |
|---|---|
| wp_new_comment_notify_moderator() wp-includes/comment.php | Sends a comment moderation notification to the comment moderator. |
| wp_notify_moderator() wp-includes/pluggable.php | Notifies the moderator of the site about a new comment that is awaiting approval. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/notify_moderator