Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: No welcome email in BP 1.1.3?


peterverkooijen
Participant

@peterverkooijen

The welcome email is generated by this function in wpmu-functions.php:

function wpmu_welcome_user_notification($user_id, $password, $meta = '') {
global $current_site;

if( !apply_filters('wpmu_welcome_user_notification', $user_id, $password, $meta) )
return false;

$welcome_email = get_site_option( 'welcome_user_email' );

$user = new WP_User($user_id);

$fullname = $meta[field_1];

$welcome_email = apply_filters( "update_welcome_user_email", $welcome_email, $user_id, $password, $meta);
$welcome_email = str_replace( "FULLNAME", $fullname, $welcome_email );
$welcome_email = str_replace( "SITE_NAME", $current_site->site_name, $welcome_email );
$welcome_email = str_replace( "USERNAME", $user->user_login, $welcome_email );
$welcome_email = str_replace( "PASSWORD", $password, $welcome_email );
$welcome_email = str_replace( "LOGINLINK", wp_login_url(), $welcome_email );
...

I’ve added the FULLNAME lines. It works if used in the welcome email text in the wp-admin options.

But haven’t figured out how to get the right password…

Is there a way to put this customized function in bp-custom.php? And let the system use that one instead of the original in wpmu-functions.php? Forgot how that worked.

Skip to toolbar