Field type
user
WP user picker. Single or multi-select with drag-to-reorder. Stores user IDs by default, or full user objects when configured.
Type: user · Stored attribute type: object
Stored value
number (single) or number[] (multi) by default; or user-object(s) when returnFormat: "object"
Supports
- Single or multi-select (
multiple, defaultfalse) - Drag-to-reorder selected users (multi-select only)
- Search via
/wp/v2/users
Config options
| Option | Type | Default | Description |
|---|---|---|---|
multiple | boolean | false | Allow selecting more than one user. |
returnFormat | string | "id" (default) or "object". With "object" the saved value is { id, name }. |
Gotchas
- Default is
multiple: false— single-select. Setmultiple: truefor author teams etc. - Search hits
/wp/v2/userswhich only returns users with published content unless the current user canlist_users. Editors may see different results than admins.
Example
{ "id": "ctrl_authors",
"type": "user",
"label": "Authors",
"attributeKey": "authors",
"multiple": true,
"parentPanelId": "panel" }Every field also takes the keys common to all fields.