A UI-only informational notice rendered inside the meta box. Useful for instructions, warnings, or contextual help.
Field::message(string $key): MessageField->content(string $html): staticThe HTML content to display.
->type(string $type): staticVisual style. Options: 'info' (default), 'warning', 'error', 'success'.
UI-only — never stored.
Field::message('seo_notice')
->content('<strong>SEO tip:</strong> Keep the meta title under 60 characters.')
->type('info'),
Field::message('danger_zone')
->content('Changing this field will clear the page cache. <a href="#">Learn more</a>.')
->type('warning'),- The
keyis required by the API but has no functional purpose for message fields. - HTML in
->content()is rendered unescaped — keep it under developer control, never from user input.