How to change email notification URL
-
Hello how are you? I needed some help, I wanted to change in the email notification, the login URL of the account, instead of going to the WP Admin redirect to the URL of “My Account” Is it possible?
The page I need help with: [log in to see the link]
-
Hi @steolhier,
I hope you are doing well today!
I assume you are referring to the user registration form emails. You can change any email notification and their content from Edit Form->Email Notifications section.
https://prnt.sc/U-N_Ath1rV1K
https://prnt.sc/_ApCjYSqAf0iPlease check below documentation for detailed information.
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#email-notifications-formsKind regards,
ZaferHello, how you going?
This screen does not appear for me, only the registry review screen, it follows in print
Hi @steolhier
I hope you are doing well.
In your case your form is set to Manual approval, so the site owner needs to approve the user.
Can you share a screenshot of which URL you are looking to change, I believe the one you are referring to is a default WordPress email.
Best Regards
Patrick FreitasHello, how are you?
i want to change this link
But when I go to the notifications options only that option appears
Hi @steolhier
This e-mail isn’t available in notifications settings, indeed. It’s a generic activation e-mail.
You should be able to customize it with a bit of additional custom code. You’ll find the code here
To add it to the site:
– create an empty file with a .php extension (for example: “forminator-custom-activation-email.php”)
– copy and paste shared code into the file
– in this line you can customize the e-mail content (as HTML)
$new_message = 'Hi, your username is: ' . $new_user_data['user_login'] . ' and your mail is: ' . $new_user_data['user_email'];For example, to keep it as is but to add login URL you can change this line to
$new_message = 'Hi, your username is: ' . $new_user_data['user_login'] . ' and your mail is: ' . $new_user_data['user_email'] . ' Login here: PUT_LOGIN_URL_HERE';where instead of PUT_LOGIN_URL_HERE you would use your actual login url
– save the file and upload it (using FTP or cPanel File Manager) to “/wp-content/mu-plugins’ folder of your site’s WordPress install).
It should then work out of the box.
Kind regards,
AdamHello, I added the file, but I couldn’t, actually I couldn’t find the “mu-plugin” folder but is there an easier way to change this email and translate it?
Hi @steolhier,
I hope you are doing well today!
You just need to create mu-plugin folder under wp-content directory, then copy the php file under the directory.
Please check below documentation for more details.
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins
https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#create-an-mu-plugin-directoryKind regards,
ZaferHello how are you?
I did this procedure but still the same information in the email!Hi @steolhier,
I tested the code in my system and can confirm it works fine when tested. Could you please share your form export so that we could see how it behaves when tested with your form?
Please check the following doc on how to export a form:
https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-exportYou can share the export file via Google Drive, Dropbox or any such cloud services in the next reply.
Looking forward to your response.
Kind Regards,
NithinHello how are you?
I finally got it, I had created the document in a wrong way, thanks a lot for all the support, the mu-plugins folder worked really well, the only thing I couldn’t was to put the login URL, but other than that, perfect!
I don’t know if I did it right, can you just help me more in this
Hi @steolhier
I hope you are doing well.
For the $new_user_data variable it has:
[user_login] [user_pass] [user_email] [role]In case you need to include the login URL you can use a native WordPress function https://developer.wordpress.org/reference/functions/wp_login_url/ or just add the login hard coded if you are using a custom page, making it a bit more dynamic you can use https://developer.wordpress.org/reference/functions/get_home_url/ and include your “/login” URL.
Best Regards
Patrick FreitasHello @steolhier ,
We haven’t heard from you for a while now, so it looks like you don’t have any more questions for us.
Feel free to re-open this ticket if needed.
Kind regards
Kasia
The topic ‘How to change email notification URL’ is closed to new replies.