Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember General Questions › emember – Any shortcodes that can be used by an admin to fetch a user's info
- This topic has 7 replies, 4 voices, and was last updated 3 years, 11 months ago by admin.
-
AuthorPosts
-
August 15, 2019 at 5:20 pm #15516RogerParticipant
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?
Thanks,
roger
August 16, 2019 at 12:48 am #79815adminKeymasterThe 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 #79816RogerParticipantLet 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?
Thanks,
R
August 17, 2019 at 7:52 am #79817adminKeymasterThere 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 MeredithParticipantI am particularly interested in a shortcode which displays a members status in a form
January 5, 2021 at 6:31 pm #82232wzpModeratorI 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 MeredithParticipantI 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 Meredith
January 6, 2021 at 5:13 pm #82245adminKeymasterYou can try the shortcode explained in the following page to show some of those details:
How to Retrieve and Show Specific Details of the Logged-in Member
-
AuthorPosts
- You must be logged in to reply to this topic.