wp_dropdown_users


wp_dropdown_users ( $args = '' )

Parameters:
  • (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.
Returns:
  • (string) String of HTML content.
Defined at:
Change Log:
  • 4: .
  • 4: .

Description

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