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:
  • (array) Array of user IDs.
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, get_user_to_edit, wp_get_sidebars_widgets, get_users_of_blog, wp_get_document_title

Top Google Results

User discussions

wpseek mobile