Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to Retrieve and Show Specific Details of the Logged-in Member

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember F.A.Q/Instructions › How to Retrieve and Show Specific Details of the Logged-in Member

Tagged: display member info, edit form, emember api, member data, members

  • This topic has 20 replies, 9 voices, and was last updated 8 years, 4 months ago by orjanmen.
Viewing 6 posts - 16 through 21 (of 21 total)
← 1 2
  • Author
    Posts
  • May 4, 2014 at 9:25 am #44953
    Mcp
    Member

    Ok Thanks you again.

    I will look that tomorrow.

    September 8, 2014 at 6:08 pm #44954
    Jayson
    Spectator

    I am using the $user_id = $auth->getUserInfo(‘member_id’); to retrieve member id and similarly for other fields in the members table, but how do I retrieve and parse a custom field that I use during registration? I have two custom field, School/Organization and Organization_code, and I need to get the value for Organization_code to set visible properties on my page, but I cannot find code that will return the value.

    I see the custom fields in the wp_members_meta_tbl as serialized data in the meta_value field, but how do I retrieve those values?

    September 9, 2014 at 12:03 am #44955
    admin
    Keymaster

    Try the following:

    $organization_code = $auth->getUserInfo(‘Organization_code’);

    September 9, 2014 at 5:05 am #44956
    Jayson
    Spectator

    Thanks, I did try that but it didn’t work, I ended up getting the user id, pulling the meta_value and unserializing it.

    Maybe I had something wrong, but I tried it several times and it never returned the code. I will attempt it again, when I’m refactoring to see if I can get it to work, it has to be a performance hit to query the db again.

    September 9, 2014 at 11:56 pm #44957
    admin
    Keymaster

    The “getUserInfo” function does not query the DB. When the user authenticates, it loads the data into the auth class. The function just reads the data from the variable.

    You are reading data for the currently logged in user right?

    November 23, 2014 at 2:21 pm #44958
    orjanmen
    Member

    Hi.

    When I use [wp_eMember_user_details user_info=”CUSTOM_FIELD_NAME”], it don’t show the whole value. It seems it only show the two first letters.

    EDIT: Found my error. On Front End, Dropdown List show value before “=>”. E.g. (Number1=>Value#1, Number2=>Value#2, Number3=>Value#3). If user choose Value#2 at registration, the shortcode will show “Number2”.

  • Author
    Posts
Viewing 6 posts - 16 through 21 (of 21 total)
← 1 2
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ