AnsPress_Email_Hooks::default_recipients( array $recipients, intgere $comment_id )

Description #

Return empty reccipients for default comment notifications.

Parameters #

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

Source #

File: addons/free/email.php

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

		if ( 'anspress' === $_comment->comment_type ) {
			return [];
		}

		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