Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

User data shortcode #108

Open
justintadlock opened this issue Aug 11, 2016 · 5 comments
Open

User data shortcode #108

justintadlock opened this issue Aug 11, 2016 · 5 comments

Comments

@justintadlock
Copy link
Owner

Need a shortcode for listing user data. Ref: https://wordpress.org/support/topic/shortcodes-to-display-user-data

@justintadlock
Copy link
Owner Author

I'm punting this one to a later release. We need to rethink this in terms of the various types of data.

For example, we might have something like this that outputs the email:

[members_user_data field="email"]

But, this outputs some custom Twitter URL meta:

[members_user_data field="twitter_url"]

Handling the escaping aspect of this is going to be tough, unless we limit it to a set of known fields.

@renatonascalves
Copy link

I wonder why Members is doing this at all. Nice enhancement but not Members job to provide members user data.

@justintadlock
Copy link
Owner Author

Members is a user, role, and capability plugin. "User" being the first part of that. Giving the average plugin user the ability to output specific user data without having to know PHP code can be nice.

One of the use cases that I have in mind is a front-end user account page where a user might want to see info about their account.

It's not particularly important for now, but it's been requested a few times.

@paulfourniercarey
Copy link

Hi, I think it is very useful when you want to build a welcome page and reassure the user they are logged in, I am using another plugin called user shortcodes plus, which helps me with this.
It would make sense to have this as part of your plugin though.
Especially if you build a site for your client who then need to create pages for their clients...

@justintadlock
Copy link
Owner Author

This is definitely on the agenda for the next major or minor release. I'm still thinking about the best way to escape unknown fields to make sure they're safe. I've got a few ideas though.

@justintadlock justintadlock modified the milestones: Future Release, 3.0.0 Jan 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants