Email::default_recipients( array $recipients, integer $comment_id )

Description #

Return empty recipients for default comment notifications.

Parameters #

  • $recipients
    array (Required) Array of recipients.
  • $comment_id
    integer (Required) Comment ID.

Source #

File: addons/email/email.php

	public function default_recipients( $recipients, $comment_id ) {
		$_comment = get_comment( $comment_id );

		if ( 'anspress' === $_comment->comment_type ) {
			return array();

		return $recipients;

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment