Jump to content

Recommended Posts

Hello everyone,

I hope this is were in post this.

I'm new to php and WordPress Database and had a question.

I was wondering if it's possible to place a php code to display a registered users email on the confirm email page of my wordpress/buddypress website.

 

Default one reads

 

You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.

 

I’d like to have (your address) actually show the email that was registered without them being logged in.

 

 

I've been searching nonstop threw documentation/Codex and I came up with this code,

 

`global $wpdb;

 

/* lets retrieve the email of users who signed up $wpdb */

function get_user_by( ‘email’,‘null’ )

$user_email = $wpdb->wpjm_signups (‘user_email’);

if ($signups) {

echo "sent to " . $user_email ;

} else {

echo "email not listed.";

}

//Creating a shortcode to display signup email

add_shortcode( 'user_email');`

 

 

I placed it in my themes functions.php file but had to delete it due to the 500 error.

 

Am I on the right track?

Link to comment
https://forums.phpfreaks.com/topic/303716-output-wp_signup-user_email-on-a-page/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.