Hello @vuurkever,
You need to use these two filters:
add_filter ( 'wppb_register_user_email_subject_without_admin_approval', 'wppbc_custom_email_confirmation_success_subject', 20, 4 );
function wppbc_custom_email_confirmation_success_subject($user_message_content, $email, $password, $user_message_subject, $context ){
return 'new_message';
}
add_filter ( 'wppb_register_user_email_message_without_admin_approval', 'wppbc_custom_email_confirmation_success_message', 20, 4 );
function wppbc_custom_email_confirmation_success_subject($user_message_content, $email, $password, $user_message_subject, $context ){
return 'new_message';
}
Regards.
Thread Starter
Victor
(@vuurkever)
Hi,
Thanks. Can I add it to the newly made (empty) plugin where I added the activation message?
And where should i put the message? Like this?
add_filter ( 'wppb_register_user_email_subject_without_admin_approval', 'wppbc_custom_email_confirmation_success_subject', 20, 4 );
function wppbc_custom_email_confirmation_success_subject($user_message_content, $email, $password, $user_message_subject, $context ){
$new_message = sprintf( __( "My custom text here" );
return 'new_message';
}
Finally, how can I incorporate the user e-mail and passwordin the custom text?
Hope to hear from you soon.
Best regards,
Victor
Hi I have the same problem how do you have fix?
Thread Starter
Victor
(@vuurkever)
Hi 100jkl,
You should use
add_filter ( 'wppb_register_user_email_subject_without_admin_approval', 'wppbc_custom_email_confirmation_success_subject', 20, 4 );
function wppbc_custom_email_confirmation_success_subject($user_message_content, $email, $password, $user_message_subject, $context ){
$new_message = 'This is my new email body. This is your email address ' . $email . '. Thank you for registering.';
return $new_message;
}
Thank you very much, but for modify the object how can I do?
Thread Starter
Victor
(@vuurkever)
Can you send me all you complete php script?
Thread Starter
Victor
(@vuurkever)
Sure.
Where should I send it?
My email is wava100f@gmail.com
Thank you very much