Created
November 19, 2018 17:54
-
-
Save landbryo/cb7c00443fa7a3ae31b033b1050c59df to your computer and use it in GitHub Desktop.
Simple function to change comment recipient emails
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
////////////////////////////// | |
// CHANGE COMMENT RECIPIENT // | |
////////////////////////////// | |
function override_comment_notice( $emails, $comment_id ) { | |
$emails = array('[email protected]', '[email protected]'); | |
return $emails; | |
} | |
add_filter( 'comment_moderation_recipients', 'override_comment_notice', 10, 2 ); | |
add_filter( 'comment_notification_recipients', 'override_comment_notice', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment