AnsPress_Email_Hooks::default_recipients( array $recipients, intgere $comment_id )
Description #
Return empty reccipients for default comment notifications.
Parameters #
- $recipientsarray (Required) Array of recipients.
- $comment_idintgere (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; }
Expand full source code Collapse full source code View on GitHub: addons/free/email.php:97
Add your comment