Skip to content

Instantly share code, notes, and snippets.

@gareth-gillman
Created August 8, 2016 10:27
Show Gist options
  • Save gareth-gillman/bb6f14c4423166d1b27f577f193d22c3 to your computer and use it in GitHub Desktop.
Save gareth-gillman/bb6f14c4423166d1b27f577f193d22c3 to your computer and use it in GitHub Desktop.
Comment Email Notifications
function se_comment_moderation_recipients( $emails, $comment_id ) {
$emails = array( 'myemailk@mail.com' );
return $emails;
}
add_filter( 'comment_moderation_recipients', 'se_comment_moderation_recipients', 11, 2 );
add_filter( 'comment_notification_recipients', 'se_comment_moderation_recipients', 11, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment