You appear to be a bot. Output may be restricted
Description
If Akismet is temporarily unreachable, we don't want to "spam" the blogger with moderation emails for comments that will be automatically cleared or spammed on the next retry.
For comments that will be rechecked later, empty the list of email addresses that the moderation email would be sent to.
Usage
$array = Akismet::disable_moderation_emails_if_unreachable( $emails, $comment_id );
Parameters
- $emails
- ( array ) required – An array of email addresses that the moderation email will be sent to.
- $comment_id
- ( int ) required – The ID of the relevant comment.
Returns
array An array of email addresses that the moderation email will be sent to.
Source
File name: akismet/class.akismet.php
Lines:
1 to 16 of 16
public static function disable_moderation_emails_if_unreachable( $emails, $comment_id ) { if ( ! empty( self::$prevent_moderation_email_for_these_comments ) && ! empty( $emails ) ) { $comment = get_comment( $comment_id ); if ( $comment ) { foreach ( self::$prevent_moderation_email_for_these_comments as $possible_match ) { if ( self::comments_match( $possible_match, $comment ) ) { update_comment_meta( $comment_id, 'akismet_delayed_moderation_email', true ); return array(); } } } } return $emails; }