Hello,
I have solved the email customization problem.
When user register through my them frontend, admin gets email user gets email, Thats fine. Plugin doesnt send email to user if theme registration is used instead of wp-admin registration form, again which is fine.
1. But admin is geting two emails, one from my theme which I dont want to disable. Second from your plugin, which I want to disable.
2. After approval by admin my theme will not send any email and plugin is sending email, I want this email to be send with extra instructions, how can i do that.? Also I want to send password to user.
Please help.
Hi @vinay404,
Thanks for using the plugin,
I hope you are doing well, Regarding point 1.
We suppose you want to disable the email sent to the admin. you can use this filter to empty the content for the email sent to the admin.
An email with no content will fail the wp validation hence will not be sent.
$message = apply_filters( 'new_user_approve_request_approval_message', $message, $user_login, $user_email );
Regarding point 2.
You can use this filter to modify the user approval message. We cannot retrieve the current user password, you will have to generate a new password, add it in email content, and update the user with the new password.
apply_filters( 'new_user_approve_approve_user_message', $message, $user );
Thanks & Regards
WP Experts Support Team
HI @vinay404,
We haven’t heard from you so we’re going to mark this thread as resolved. Feel free to open a new one if you need it.
Thanks