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

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

Related Functions

wp_get_session_token, wp_get_user_request, wp_get_sidebars_widgets, get_user_to_edit, get_users_of_blog

Top Google Results

User discussions

wpseek mobile