Skip to content

Instantly share code, notes, and snippets.

@theukedge
Created June 3, 2014 14:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save theukedge/68fe7e0cf4a10700774f to your computer and use it in GitHub Desktop.
Save theukedge/68fe7e0cf4a10700774f to your computer and use it in GitHub Desktop.
<?php
// Don't email webmaster for comment moderation
function pref_dont_email_webmaster( $emails, $comment_id ) {
$webmaster_email = get_option('admin_email');
if ( $emails[0] == $webmaster_email )
unset($emails[0]);
return (array) $emails;
}
add_filter( 'comment_moderation_recipients', 'pref_dont_email_webmaster', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment