Want to remove the notification email from buddypress? here’s how.
Post created Wednesday, January 20th, 2010 by Landon.
Open up the file wpmu-functions.php in the /wp-includes/ folder.
Change the following code block:
function wpmu_signup_blog_notification($domain, $path, $title, $user, $user_email, $key, $meta = ”) {
global $current_site;
if( !apply_filters(’wpmu_signup_blog_notification’, $domain, $path, $title, $user, $user_email, $key, $meta) )
return false;
// Send email with activation link.
if( constant( “VHOST” ) == ‘no’ || $current_site->id != 1 ) {
$activate_url = “http://” . $current_site->domain . $current_site->path . “wp-activate.php?key=$key”;
} else {
$activate_url = “http://{$domain}{$path}wp-activate.php?key=$key”;
}
$activate_url = clean_url($activate_url);
$admin_email = get_site_option( “admin_email” );
if( $admin_email == ” )
$admin_email = ’support@’ . $_SERVER['SERVER_NAME'];
$from_name = get_site_option( “site_name” ) == ” ? ‘WordPress’ : wp_specialchars( get_site_option( “site_name” ) );
$message_headers = “MIME-Version: 1.0\n” . “From: \”{$from_name}\” <{$admin_email}>\n” . “Content-Type: text/plain; charset=\”" . get_option(’blog_charset’) . “\”\n”;
$message = sprintf( apply_filters( ‘wpmu_signup_blog_notification_email’, __( “To activate your blog, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your blog here:\n\n%s” ) ), $activate_url, clean_url( “http://{$domain}{$path}” ), $key );
// TODO: Don’t hard code activation link.
$subject = sprintf( apply_filters( ‘wpmu_signup_blog_notification_subject’, __( ‘[%s] Activate %s’ ) ), $from_name, clean_url( ‘http://’ . $domain . $path ) );
//wp_mail($user_email, $subject, $message, $message_headers);
return true;
}
omg so easy!

About: Landon
Landon is the guy behind the scenes at noss media- he founded the company in 2009. He's the Interaction Designer and Product Evangelist.
No Responses to "Want to remove the notification email from buddypress? here’s how."