Last active
February 6, 2019 17:34
-
-
Save landbryo/29218b1e52b38565bce38ae81ebcbbdd to your computer and use it in GitHub Desktop.
Add multiple comment recipients to WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function comment_recipients( $emails, $comment_id ){ | |
$recipient_email = array( | |
'[email protected]', | |
'[email protected]' | |
); | |
return $recipient_email; | |
} | |
add_filter( 'comment_notification_recipients', 'comment_recipients', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment