Field Types
Usage examples for every built-in field type, grouped by purpose. Each
example is a single field definition you can drop into a sections.*.fields
array — see Quick Start for the surrounding schema
boilerplate (id, container, store, sections).
All examples on these pages are adapted from the working demo plugin at
examples/schema-demo-plugin/, so every snippet is exercised by the
project’s own smoke tests.
- Basic Input — text, url, textarea, number, slider, spinner, date, color
- Choice — select, radio, button_set, checkbox, checkbox_list, switcher
- Media — upload, media, gallery, image_select, palette
- Structural — fieldset, group, accordion, tabbed, dimensions, spacing, border, link_color, sorter
- Advanced — typography, background, icon
- Async — ajax_select
- Presentation & Tools — heading, subheading, content, notice, code_editor, wp_editor, backup_tools
For registering an entirely new field type (not listed here), see Extension Recipes.