• Can someone please help me with a function code to display the registration date for currently logged in user in the format; April 8, 2020.

    Thanks in anticipation.

    • This topic was modified 6 years, 2 months ago by Jan Dembowski.
Viewing 1 replies (of 1 total)
  • Hello @ogmic,

    Please find the code snippet below:

    
    $udata = get_userdata( $user->ID );        //create user data object of desired user
    $registered = $udata->user_registered;     // fetch the date of registration
    
    echo date('F j, Y', strtotime( $registered ));
    

    Please let us know if this works for you!

Viewing 1 replies (of 1 total)

The topic ‘How t show user registered date with shortcode hooks’ is closed to new replies.