Timeline for how to get list of all users and their metadata
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 24, 2021 at 10:34 | review | Suggested edits | |||
May 24, 2021 at 13:10 | |||||
Jun 26, 2020 at 12:57 | comment | added | Tom J Nowell♦ |
When WP fetches an object such as a user/post/term it also pre-fetches its meta and puts it in wp_cache to reduce the number of queries and speed up things. Those get_user_meta calls won't be making database queries, the data was already fetched when get_users was called.
|
|
S May 29, 2020 at 6:32 | history | suggested | Ahmad Awais | CC BY-SA 4.0 |
👌 IMPROVE: Lingo
|
May 29, 2020 at 2:12 | review | Suggested edits | |||
S May 29, 2020 at 6:32 | |||||
Aug 17, 2019 at 8:42 | comment | added | Mikael Lindqvist | But will this not make one query per user to the database? Is there any way to do it with fewer queries? | |
Nov 7, 2016 at 20:30 | history | edited | Syed Fakhar Abbas | CC BY-SA 3.0 |
added 11 characters in body
|
Jun 30, 2016 at 7:44 | vote | accept | Hermants | ||
Jun 30, 2016 at 4:00 | history | edited | Syed Fakhar Abbas | CC BY-SA 3.0 |
deleted 74 characters in body
|
Jun 30, 2016 at 3:45 | history | answered | Syed Fakhar Abbas | CC BY-SA 3.0 |