• Hey everyone I was wondering if there is a php code to display a registered users email on the confirm email page.

    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.

    Any documentation will help.

    I been using the Kleo theme with BuddyPress, I’m trying to learn php as I go and I tried this following code but it didn’t work.

    <?php global $display_name , $user_email;
    get_currentuserinfo();

    echo $display_name . “‘s email address is: ” . $user_email;
    ?>

    It appears to work only if I have them login automatically right after registration but the way I have my site set up is they get redirected to the activity feed after logging in and I really don’t want to change that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter threwthenevr

    (@threwthenevr)

    Was this post moved? I posted in every thing else wordpress.

    Thread Starter threwthenevr

    (@threwthenevr)

    Update.

    Just a quick update.
    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?

    Thread Starter threwthenevr

    (@threwthenevr)

    Here’s the code I figured it out

       <center><h1> Check Your Email To Activate Your Account!</h1><center>
    
        
     Thanks for registering,<b><?php echo $_POST["signup_username"]; ?></b><br /> You have successfully created your account! <br />To begin using this site you will need to activate your 
       account via the email we have just sent to <b><?php echo $_POST  ["signup_email"] ;?><b>
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Show registered users email on check email page?’ is closed to new replies.