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:
  • 4: .

Description

Gets the user IDs of all users with no role on this site.

Related Functions

wp_get_session_token, wp_get_user_request, get_user_to_edit, wp_get_sidebars_widgets, get_users_of_blog

Top Google Results

User discussions

wpseek mobile