GCBGutenberg
Control Blocks
Buy

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, default false)
  • Drag-to-reorder selected users (multi-select only)
  • Search via /wp/v2/users

Config options

OptionTypeDefaultDescription
multiplebooleanfalseAllow selecting more than one user.
returnFormatstring"id" (default) or "object". With "object" the saved value is { id, name }.

Gotchas

  • Default is multiple: false — single-select. Set multiple: true for author teams etc.
  • Search hits /wp/v2/users which only returns users with published content unless the current user can list_users. Editors may see different results than admins.

Example

JSON
{ "id": "ctrl_authors",
  "type": "user",
  "label": "Authors",
  "attributeKey": "authors",
  "multiple": true,
  "parentPanelId": "panel" }

Every field also takes the keys common to all fields.

Built from GCB Lite 0.4.0 (ce232d4). Source: schemas/controls/user.md.

Copyright © 2026 Runchain. WordPress is a trademark of the WordPress Foundation.