Skip to content
Simone Montali edited this page Sep 9, 2019 · 2 revisions

Text

{
  "id": "subtitle",
  "type": "text",
  "label": "Subtitle",
  "description": "The book subtitle",
  "size": "half",
  "placeholder": "placeholder",
  "defaultValue": "This is a default text",
  "required": true,
}

The text field can input/output text on a single line. For longer texts, check the TextArea field.

Options

For the general settings fields, check the getting started page.

Custom options

The text field has two additional options:

  • "placeholder" stores a placeholder for the field, which is displayed in editing mode.
  • "defaultValue" contains the default value for the text field.

Filters

You can filter the field's fetched value by calling WordPress' add_filter with the tag "aeria_get_base".

Clone this wiki locally