Ticket for: User Verification
0
Anonymous
Hi folks,
I'm using this plugin on conjuction with memberpress signup process.
I have a thank you page after the signup with a message to check the email.
In this page I'm trying to display the mail with this function: `get_userdata(get_current_user_id());`.
As soon as I activate the plugin this function can't get the email.
I'd like to show a message like: We have sent an email to {your.email}. Is this possible? How can I get the mail address?
$userMail = get_userdata(get_current_user_id());
if($userMail){
$userMail=$userMail->user_email;
}else{
$userMail='your email address';
}
0 Subscribers
Submit Answer
1 Answers
Best Answer
0
Hi,
This is not the purpose of our plugin.
But after inspecting your code, I can see the get_current_user_id will return empty. You've to pass the user registered ID.
Thanks Azizul, I really appreciate the time and effort you make.
I know it’s not the purpose of your plugin but I’d like to improve the overall user experience. Do you provide a functions to get the current registered Users? Because as far as I understand, at the end of the process, the user isn’t logged in yet so I don’t have any clue on how to get the registered users.
Peraphs do you pass the email by get or post?
And thanks for the wonderful plugins.