wp_dropdown_users ( $args = '' )

  • (array|string) $args { Optional. Array or string of arguments to generate a drop-down of users. See WP_User_Query::prepare_query() for additional available arguments.
  • (string) String of HTML content.
Defined at:
Change Log:
  • 4: .
  • 4: .


Create dropdown HTML content of users.

The content can either be displayed, which it is by default or retrieved by setting the 'echo' argument. The 'include' and 'exclude' arguments do not need to be used; all users will be displayed in that case. Only one can be used, either 'include' or 'exclude', but not both.

The available arguments are as follows:

Related Functions

wp_dropdown_pages, wp_dropdown_roles, wp_dropdown_languages, wp_dropdown_cats, wp_dropdown_categories

Top Google Results

User discussions

wpseek mobile