Core Function
View Source on Trac ↗ wp_get_users_with_no_role()
wp_get_users_with_no_role( mixed $site_id = null ) Gets the user IDs of all users with no role on this site.
Parameters 1 required
| Name / Type | Description |
|---|---|
| (int | | null) $site_id Optional. The site ID to get users with no role for. Defaults to the current site. Required |
Return Value
(string[])
Array of user IDs as strings.
Function Information
Since Version
4.4.0
Source File
wp-includes/user.php
Advertisement