How to get list of all users and their metadata in WordPress?

Posted by Prem Tiwari | Updated on

I think you should use wp-api functions which will do everything for you.

  • get_users()¬†function will get all users data just define fields which u require.
  • get_user_meta() function will get usermeta data.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers