date

Date picker. Author clicks a button to open a calendar popover (or modal in metabox contexts). Stores a date-only ISO string.

Stored value

string — ISO date like "2026-05-28", or empty string when cleared.

Supports

  • Calendar popover with Clear button
  • Works in both sidebar (popover) and metabox (modal) variants

Config options

helpTextstring
One-line description shown below the picker.

Example

json
{ "id": "ctrl_publish_at",
  "type": "date",
  "label": "Publish date",
  "attributeKey": "publish_at",
  "parentPanelId": "panel" }

Gotchas

Heads up
No min/max date config — if you need bounded dates, enforce in your render code or filter saved values server-side.