Last active
August 29, 2015 14:13
-
-
Save toddsby/aeb39c57daca6a75eaa9 to your computer and use it in GitHub Desktop.
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 | |
// I did this simple hack on a private WordPress Multisite blog, to stop it | |
// sending me emails every time I created a new blog. It's definitely overkill | |
// to stop all emails, but unfortunately I couldn't find any hooks that let me | |
// be more specific! (I didn't need any of the other emails - but you shouldn't | |
// use this code if you do!) | |
// I put the code in wp-config.php. You could create a plugin instead, or | |
// putting it in your theme's functions.php might work (I haven't tested it). | |
// Disable ALL emails | |
function wp_mail() | |
{ | |
// Do nothing! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment