Disabling New Site Admin Notification Emails
-
I’m running a large WordPress Network. We create blogs for our clients, using their email addresses, but we don’t want initial emails to go to them. We provide our users with login information later on, after the blog has been designed for them. So, I’m writing a plugin to prevent these emails from going out. I have worked out which WordPress functions manage this and have started writing a plugin. I haven’t however written a plugin before so this isn’t working yet. What simple thing am I missing here?
function dmg_do_nothing() { } //replaced pluggable function if ( !function_exists('wp_new_user_notification') ) : function wp_new_user_notification($user_id, $plaintext_pass = '') { dmg_do_nothing(); } endif; //filters for overriding other functions add_filter('wpmu_signup_blog_notification', 'dmg_do_nothing', 1, 1); add_filter('wpmu_signup_user_notification', 'dmg_do_nothing', 1, 1); add_filter('wpmu_welcome_notification', 'dmg_do_nothing', 1, 1); add_filter('wpmu_welcome_user_notification', 'dmg_do_nothing', 1, 1);
[Please post code snippets between backticks or use the code button.]
This breaks the Network when executed.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Disabling New Site Admin Notification Emails’ is closed to new replies.