Message field
Purpose
A note for editors on the edit screen: "Images must be 1600 × 900", "Only fill this in for the home page". It is not a value.
Field type name
message
Settings
| Setting | Description |
|---|---|
| Instructions | Shown below the label, like other fields. (max 2000 characters) |
| Message | The text editors see. Links, emphasis and lists are kept; scripts and other unsafe HTML are removed when saved (wp_kses_post). (max 5000 characters) |
| New Lines | wpautop (paragraphs), br (line breaks) or none. |
| Show HTML as Text | Show tags literally (for code examples). |
| Width | Width on edit screens: 100, 75, 66, 50, 33 or 25 (%). |
| Label per language | The label and instructions per language code while editing in that language. See WPML. |
A Message has no Translation mode: it has no value to translate. Unknown settings are
rejected (cafe_unsupported_setting).
PHP return value
Always null. Message fields are left out of container values, cafe_get_fields() and
REST.
Example
In the builder: add a Message above the "Hero image" field with the text "Upload an image of at least 1600 × 900 pixels."