Collapsible Section field
Purpose
A section of the edit screen that editors open and close, to keep long forms tidy.
Field type name
collapsible
Settings
| Setting | Description |
|---|---|
| Instructions | Help text for editors, shown with the field. |
| Open | Show this section open when the page loads. |
| Keep Others Open | Opening this section does not close the other sections. |
| Label per language | The label and instructions per language code while editing in that language, e.g. {"nl": {"label": "Prijs"}}. Set on the Translation tab when WPML is active. See WPML. |
PHP return value
No value. Its fields keep their own names.
Example
// Builder: Collapsible Section "Advanced" → CSS class, Anchor ID.
$anchor = cafe_get_field( 'anchor_id' );