Simple Membership Plugin › Forums › Simple Membership Plugin › Email with unique link is not sent to a new member
Tagged: email with unique link
- This topic has 8 replies, 3 voices, and was last updated 9 years, 8 months ago by
mbrsolution.
-
AuthorPosts
-
September 11, 2016 at 9:25 pm #8214
Koenraad
ParticipantHi,
I’m setting up the simple membership plugin for multiple free memberships.
When a new member has registered the member immediately receives an email to confirm that he is registered.
In this mail he receives his user id and password.What I expected is that the member first receives an email with a unique link to validate his account.
This never happens.Is this only working for paying members ? I hope not.
Any help in resolving this is much appreciated.
I need to get this working.Regards,
KoenraadSeptember 12, 2016 at 6:13 am #8216mbrsolution
ModeratorHi, yes this is currently only set up for paid members sign up. Would redirect to a thank you page help you in any way?
September 12, 2016 at 1:01 pm #8221Koenraad
ParticipantHi, thank you for your answer. Redirection to a thank you page would indeed be helpfull.
How can I implement this in an easy way?Is there also a possibility to make changes to the sourcecode in order to activate the unique link for free members?
If so, could you tell me where to find the necessary docs on how to change this ?Thank you,
Regards,
KoenraadSeptember 12, 2016 at 9:08 pm #8230mbrsolution
ModeratorHi, in regards to sending the member to a different URL after registration.
You can add the following function to your theme functions.php file.
add_action('swpm_front_end_registration_complete', 'sam_after_registration_redirection'); function sam_after_registration_redirection() { $url = 'http://www.yourwebsite.com/thank-you/';//TODO - Specify the URL that you want to redirect to wp_redirect($url); }In regards to your second question, check the following action hooks. They might be able to help you achieve what you are trying to do.
Regards
September 13, 2016 at 8:29 pm #8262CSFLA
ParticipantHi. Sorry to hijack this thread. Do all action hooks get pasted into the functions.php file? Do they get overwritten if you update the plugin? Many thanks, David 🙂
September 13, 2016 at 9:37 pm #8264mbrsolution
ModeratorHi @David, you could say that yes most hooks are functions. They are added to your functions.php file.
The answer to your second question is yes, if they are added to the themes functions.php file. This is why many will always recommend you to create a child theme to do all your customization. That way when ever you update your theme, your will never loose your custom code “hooks” added in your child functions.php file.
Let me know if you need more help.
September 21, 2016 at 6:33 pm #8395Koenraad
ParticipantHi,
mbrsolution, thank you very much for the tips.
I will try them out in the child theme that I use on the site.September 22, 2016 at 12:42 am #8398Koenraad
ParticipantHi,
mbrsolution, I’ve tried adding your code for redirecting to a thank-you page to the functions.php file of my child theme.
It works perfectly.
Thanks again,
KoenraadSeptember 22, 2016 at 1:34 am #8399mbrsolution
ModeratorHi Koenraad, I am happy to know the code worked for you 🙂
Enjoy the plugin
Regards
-
AuthorPosts
- You must be logged in to reply to this topic.