Hi @jannetto96,
Thanks for using the plugin,
You can modify the message using the filter hook.
apply_filters( 'new_user_approve_welcome_message_default', $welcome );
Also, our plugin sends an automatic email to the users once they approved.
Thanks
Thread Starter
Jan
(@jannetto96)
Hi @wpexpertssupportteam
Unfortunately i’am a new developer.
How i can i edit using the filter hook?
Could you please give me the entire code to insert in functions?
Also how to edit the text inside the automatic email?
Thank you!
Hi @jannetto96,
Sure, here is an example code for modifying messages on WP-admin page.
add_filter('new_user_approve_welcome_message_default', function($message) {
$new_message = "";
$new_message .= "Hi Customer";
$new_message .= "\n\n";
$new_message .= "Your message";
$new_message .= "\n\n";
$new_message .= "Thanks";
return $new_message;
}, 10, 1);
You can modify the $new_message variable according to your message.
Here $new_message .= “\n\n”; is for 2 lines space.
Here is the code for modifying the approval email.
add_filter('new_user_approve_approve_user_message_default', function($message) {
$new_message = "";
$new_message .= "Hi Customer";
$new_message .= "\n\n";
$new_message .= "Your message";
$new_message .= "\n\n";
$new_message .= "Thanks";
return $new_message;
}, 10, 1);
Also, the options for modifying the messages or emails are available in the premium version of the plugin.
Thanks