-
Notifications
You must be signed in to change notification settings - Fork 123
Wysiwyg field
Matthew Haines-Young edited this page Sep 24, 2013
·
19 revisions
A WYSIWYG editor field.
- id (string) (required)
- name (string) (required) Field display name. Used as field label.
- type 'wysiwyg' (string) (required)
- options (array) (optional) wp_editor settings. See WordPress codex.
- desc (string) Field description. Displayed below label.
- repeatable (bool) see Repeatable Fields
- readonly (bool) Prevent authors editing this field value.
- default (string) Set a default value
- cols (int) [1-12]
array(
'id' => 'example-field-wysiwyg',
'name' => 'A WYSIWYG editor field',
'type' => 'wysiwyg',
'options' => array(
'textarea_rows' => '5'
)
),
- Setup/Install Custom Meta Boxes
- Creating a custom meta box
- Displaying Field Data
- Optional Generic Field Args
- Repeatable Fields
General
- Text Field
- Small Text Field
- Number Field
- URL Field
- Textarea Field
- Code Field
- Select Field
- Checkbox Input Field
- Radio Input Field
Date & Time
WordPress
Media
Utilities