wp_get_users_with_no_role
wp_get_users_with_no_role ( $site_id = null )
Parameters:- (int|null) site_id Optional. The site ID to get users with no role for. Defaults to the current site.
Returns:- (string[]) Array of user IDs as strings.
Defined at:Change Log: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Gets the user IDs of all users with no role on this site.