Skip to content

Latest commit

 

History

History
179 lines (157 loc) · 10.5 KB

fields.md

File metadata and controls

179 lines (157 loc) · 10.5 KB

Supported Fields

This page lists all public field type slugs. See each dedicated file for attributes and examples.

Advanced / Application Fields

Basic Inputs

  • copy — Copy-to-clipboard field.
  • date — Modern date picker field.
  • datetime — Combined date and time picker.
  • email — Email address input.
  • hidden — Hidden input for internal values.
  • month — Month picker input.
  • number — Numeric input.
  • password — Password/secret input.
  • range — Slider/range input.
  • readonly — Readonly display/input field.
  • slider — Alias of range slider input.
  • spinner — Compact numeric spinner input.
  • tel — Telephone input.
  • text — Single-line text input for names, labels, IDs, and simple strings.
  • textarea — Multi-line plain text input for notes and longer unformatted text.
  • time — Modern time picker field.
  • unit — Numeric value with measurement unit.
  • url — URL input.
  • week — Week picker input.

Choice & UI Controls

  • ajax_select — AJAX/searchable select field.
  • button_set — Single-choice segmented button control.
  • checkbox — Single boolean checkbox.
  • checklist — Checklist control.
  • enhanced_select — Alias of Select2-style enhanced select.
  • icon — Icon picker.
  • image_select — Image-based choice selector.
  • matrix — Matrix/grid choice control.
  • multicheck — Multiple checkbox choices.
  • palette — Color palette choice selector.
  • progress — Progress percentage/value field.
  • radio — Single-choice radio list.
  • rating — Star rating field.
  • select — Dropdown select field with optional multiple/select2 behavior.
  • select2 — Searchable Select2-style dropdown for larger option lists.
  • sortable — Sortable option list.
  • sorter — Enabled/disabled sorter control.
  • switcher — Premium on/off switch for boolean values.
  • toggle — Alternative toggle control for boolean values.

Complex & Builder Fields

Content & Editor Fields

  • code — Code textarea/editor field.
  • code_editor_advanced — Advanced code editor field.
  • content — Static content block inside a settings page.
  • css_editor — CSS editor alias.
  • divider — Visual divider between fields.
  • heading — Large section heading.
  • html — Static HTML output field.
  • js_editor — JavaScript editor alias.
  • json — JSON input/editor field.
  • notice — Styled notice/callout field.
  • subheading — Smaller section heading.
  • wp_editor — Alias of WYSIWYG editor field.
  • wysiwyg — WordPress editor field.

Design Controls

Media & Embeds

Other Fields

  • button — Action/link button display.

WordPress Data Fields

Context examples

Each dedicated field file under docs/fields/ includes example code for Options, Metabox, Customizer, Taxonomy, Profile/User, Nav Menu, Widget, Comment, and Shortcode usage. Use those files as the source of truth for full field configuration examples.