Display the email to a thank you page

Ticket for: User Verification
0
Display the email to a thank you page 1
Anonymous
Apr 08, 2023 04:37 PM 1 Answers
Member Since Jan 1970
Unsolved Solved Mark as Solved Mark as Unsolved
Subscribed Subscribe Not subscribe
Flag(0)

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
Please login to submit answer.
1 Answers
Sort By:
Best Answer
0
Display the email to a thank you page 2
Azizul Raju
Apr 08, 2023
Flag(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.

Display the email to a thank you page 3
alessandro
- Apr 14, 2023 03:52 PM
Flag (0)
0

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.

Sign in to Reply
Replying as Submit