Hello
I want to load all registered users from the database. Currently i have 2 users. With this code:
$entity_type = 'elgg_users_entity';
$entities = elgg_get_entities(array('type' => $entity_type));
I only get one user.
So how can i get all users from the database?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Alex@schneal76
Alex - 0 likes
You must log in to post replies.Try $entities = elgg_get_entities(array('type' => 'user'));
Thanks a lot, that works