August 15, 2019 at 5:20 pm #15516RogerMember
I’m aware of the eMember shortcodes which access the current user’s info. But, is there a way for an admin to access a particular user’s info?
I would like to be logged in as an admin, but be able to set some parm that could let me access the shortcodes for user X. Any way to do that?
rogerAugust 16, 2019 at 12:48 am #79815
The admin can view all the details of a member from the admin dashboard. Go to the members menu then edit a member’s profile. It will show you all the details of the profile in question.August 16, 2019 at 8:29 pm #79816RogerMember
Let me more specific. I’m adding php code for preprocessing a form. So, I don;t have access to the admin dashboard.
For my normal user processing, I’m pulling in user details using your shortcodes (e.g. [wp_eMember_user_details user_info=”email”] )
But, since I’m an admin trying to do updates to users, I need a way to pull in their info (programatically). Any way to use the existing shortcodes or set up a parameter to make it look like I’m the user?
RAugust 17, 2019 at 7:52 am #79817
There is no option to set parameter like the way you are describing.
Since you are developing, I wanted to mention that we have the following API options to query member details and then update.January 5, 2021 at 1:15 pm #82231Jay MeredithParticipant
I am particularly interested in a shortcode which displays a members status in a formJanuary 5, 2021 at 6:31 pm #82232wzpModerator
I am particularly interested in a shortcode which displays a members status in a form
As a logged in member? Please be more specific about what you are trying to do.January 5, 2021 at 11:00 pm #82242Jay MeredithParticipant
I would like to have my membership confirmation/renewal page display the logged on member’s Name, membership level, expiration date, and current status – much like the WP eMember logon widget does. This will help members who are close to or at their expiration date know where they stand in regards to renewal.
Regards, Jay MeredithJanuary 6, 2021 at 5:13 pm #82245
You can try the shortcode explained in the following page to show some of those details:
- You must be logged in to reply to this topic.