Skip to content

User Select Field

Mark Wilkinson edited this page May 17, 2016 · 1 revision

The User Select field will provide a select input of the users matching the query provided. By default this will output a select box with all users included.

Args

Required Args

  • id (string) (required)
  • name (string) (required) Field display name. Used as field label.
  • type 'user_select' (string) (required)

Field Specific Args

  • query (array) WP_User_Query args.

Optional Generic Args

See Optional Generic Args

Example Usage

array( 
	'id'   => 'user_select_field', 
	'name' => 'Example User Select Field', 
	'type' => 'user_select', 
),
Clone this wiki locally