Problem: I would like to use a Form to register Users, and when registration is complete I want to send the new User a direct link to reset their password.
Solution: Nothing like that is built into Forms, but you can use the cred_save_data API to programmatically trigger the wp_new_user_notification function, outside of the Forms notification system.
In the cred_save_data callback for a User Form, the $post_id variable will contain the new User's ID. If you'd like to customize the email, you can use the wp_new_user_notification_email filters.
Relevant Documentation:
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
https://developer.wordpress.org/reference/functions/wp_new_user_notification/
https://developer.wordpress.org/reference/hooks/wp_new_user_notification_email/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - | - |
13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | 13:00 – 17:00 | - | - |
Supporter timezone: America/New_York (GMT-04:00)
This topic contains 4 replies, has 2 voices.
Last updated by 5 years, 11 months ago.
Assisted by: Christian Cox.