The activation email body can be filtered using bp_core_signup_send_validation_email_message
The subject line can also be changed bp_core_signup_send_validation_email_subject
For example: To change the subject line you would add this to functions.php
function activation_email_subject_filter( $subject, $user_id ) {
$subject = 'Hello New User';
return $subject;
}
add_filter('bp_core_signup_send_validation_email_subject', 'activation_email_subject_filter', 10, 2 );
can I add this code to my Theme CSS code to avoid changing the core code or having to redo with all updates?
You’re on the right track – although it isn’t your theme’s style.css that you’d want to add it to. You’d add it to your theme’s functions.php file.
But wouldn’t I run into the same problem with every theme update? I don’t know code and don’t like diddling in it. Maybe I need to just hire a developer to resolve all my little issues. Does BuddyPress offer dev services? Where do I go to sign up? thanks
Your theme’s functions.php file wouldn’t get overwritten with each update. The changes you make to this file will be safe going forward.
A great place to hire a BuddyPress developer would be the BP Jobs Board:
BP Jobs Board
ok – i will check out the jobs board. Are you for hire Henry? taye@digz.ca
Not currently for hire due to a lack of time – that said, there are quite a few BP developers who will be able to help. Perhaps check who is available on the jobs board. @shanebp might be a good person to ask
Thanks – I sent @shanebp an email. Hopefully he is available. Thanks for the help!
Have a great day,
taye
Hi,
I’m trying to edit the message body and I’ve managed using your code @henrywright-1 but in the process I have lost the link that they need to click on. I’m obviously missing a variable, can you help me identify what it is?
This is the code I have:
#-------------------------
# Edit activation email
#----------------------------
function activation_email_message_filter( $message, $user_id ) {
$message = 'Thanks for registering! To complete the activation of your account please click the following link or copy and paste it into your browser\'s address bar:';
return $message;
}
add_filter('bp_core_signup_send_validation_email_message', 'activation_email_message_filter', 10, 2 );
The email comes through with the edited message text, but the activation ink itself is missing.
You’ll need to look at the core function that filter ‘bp_core_signup_send_validation_email_message’ belongs to to see what has been missed in the return;.