Function: get_users_of_blog

get_users_of_blog( integer $id )

Get users for the site.

For setups that use the multisite feature. Can be used outside of the multisite feature.

Parameters

Name Type(s) Default Value Description
$id integer ''

Site ID.

Returns

array

List of users that are part of that site ID

WordPress Developer Newsletter

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