comment_moderation_recipients WordPress Filter Hook

The comment_moderation_recipients Wordpress hook allows you to specify who should receive email notifications when a comment is held for moderation. This can be useful if you want to make sure that someone other than the comment author is aware of the comment.

apply_filters( 'comment_moderation_recipients', string[] $emails, int $comment_id ) #

Filters the list of recipients for comment moderation emails.


Parameters

$emails

(string[])List of email addresses to notify for comment moderation.

$comment_id

(int)Comment ID.


Top ↑

Source

File: wp-includes/pluggable.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More