This plugin will disable emails about new users who register on your blog. It is a very simple plugin that just changes what happens when new users registers.
You can download this plugin here.
I am going to be submitting this plugin to the repository, I don’t suspect any updates to this anytime soon. But if there are, it will be there.
/*
Plugin Name: Disable new user email notifications
Plugin URI: http://www.tipsforwordpress.com
Description: Disables email notifications of new users registered on your blog
Author URI: http://westondeboer.com
Version: 1.0
*/
if ( !function_exists('wp_new_user_notification') ) :
function wp_new_user_notification($user_id, $plaintext_pass = '') {
$user = new WP_User($user_id);
$user_login = stripslashes($user->user_login);
$user_email = stripslashes($user->user_email);
// The blogname option is escaped with esc_html on the way into the database in sanitize_option
// we want to reverse this for the plain text arena of emails.
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
if ( empty($plaintext_pass) )
return;
$message = sprintf(__('Username: %s'), $user_login) . "\r\n";
$message .= sprintf(__('Password: %s'), $plaintext_pass) . "\r\n";
$message .= wp_login_url() . "\r\n";
wp_mail($user_email, sprintf(__('[%s] Your username and password'), $blogname), $message);
}
endif;
?>
With this plugin, I have learned so much about pluggable.php and am so excited about it! Things I didn’t know before.
that is a very useful plugin. Nice Post! Thanks for sharing.