Definition:
function _fill_many_users( &$users ) {}
Take an array of user objects, fill them with metas, and cache them.
Parameters
- array $users: User objects
- &$users
Source code
function _fill_many_users( &$users ) { $ids = array(); foreach( $users as $user_object ) { $ids[] = $user_object->ID; } $metas = get_user_metavalues($ids); foreach ( $users as $user_object ) { if ( isset($metas[$user_object->ID]) ) { _fill_single_user($user_object, $metas[$user_object->ID]); } } }
4315
No comments yet... Be the first to leave a reply!