Function: cache_users

cache_users( array $user_ids )

Retrieve info for user lists to prevent multiple queries by get_userdata()

Parameters

Name Type(s) Default Value Description
$user_ids array

User ID numbers list

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.