初期状態のままだと以下のような無機質なメールが送信されてしまうため、これを変更します。
ご登録ありがとうございます。アカウントを有効化するには、下のリンクをクリックしてください。 URL Username: Email: Membership Type:
変更するためには下記をbp-custom.phpに追加します。
//アクティベーション用メールの文言変更
add_filter('bp_core_signup_send_validation_email_message', 'custom_bp_change_activation_email_message');
function custom_bp_change_activation_email_message($message) {
global $bp, $wpdb;
//アクティベーションページのスラッグを取得します。
$slug = $bp->pages->{"activate"}->slug;
//ユーザーネームを取得します。
$username = $bp->signup->username;
//SQLクエリでユーザー名に対するアクティベーションキーを取得します。
$sql = 'select meta_value from wp_usermeta where meta_key="activation_key" and user_id in (select ID from wp_users where user_login="' . $username . '" and user_status=2)';
$activation_key = $wpdb->get_var($sql);
// アクティベーション用URLを作成します。
$url = sprintf("%s/%s/?key=%s", WP_HOME, $slug, $activation_key);
// カスタマイズした本文を入力します。
$message = "ご参加、誠にありがとうございます。\n\n以下のリンクをクリックして、承認を行ってください。\n\n$url";
return $message;
}
タイトルの「アカウントを有効化する」を変更するためにはBuddyPressの言語ファイル「buddypress-ja.po」の「Activate Your Account」を変更する必要があります。
参考:Customizing Buddypress Activation Emails (and still get activation key)


