Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
403 views
in Plugins by
Is there a simple function to get info from the user profile?

Something like qa_db_usermeta_get

1 Answer

+2 votes
by
selected by
 
Best answer

These are some simple functions that help you get user information:

qa_db_user_account_selectspec()
qa_db_user_profile_selectspec()
qa_db_userfields_selectspec()

Although most likely you'll be only interested in the second one. You can see them in action here.

Just follow the three variables assigned for each of those functions in that link ($useraccount, $userprofile, $userfields) and you'll have the tutorial right there :)

by
Thanks, Exactly what I needed.
...