WordPress.org

Ready to get started?Download WordPress

Forums

User Registration Date (4 posts)

  1. JobTask
    Member
    Posted 3 years ago #

    Hello! Does anyone know of a plugin or code that I use to keep up with the date a user registered as a member for my website? I was hoping for find something like "Member since: March 2011" or "Join Date: March 2011" or something like this that I could put below their name.

    Thank you!

  2. Roger Coathup
    Member
    Posted 3 years ago #

    get_userdata() returns all the information you need about a user.

    e.g. to display member since information:

    <?php echo date("M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?>

  3. ahoodie
    Member
    Posted 2 years ago #

    Thanks Roger. Just what I was looking for. Works great.

  4. ahoodie
    Member
    Posted 2 years ago #

    Nevermind. It shows the same date for all the users.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.