Settings
Table of Contents
Namespaces
Classes
- Field
- Declarative description of one admin settings field: the persisted option name, the control to render and how to sanitize it on save.
- FieldRenderer
- Renders a {@see Field} as its HTML control, reading the current value from the options table. All dynamic output is escaped; {@see FieldType::RawHtml} is the single deliberate escape hatch (the caller owns that markup).
- Section
- A titled group of fields inside a settings tab, mapped 1:1 onto a WordPress settings section.
- SettingsPageRegistrar
- Declarative settings pages: describe tabs → sections → {@see Field}s once and this registrar wires everything through the WordPress Settings API — `register_setting()` (with the field's type-default sanitizer), `add_settings_section()` and `add_settings_field()` (rendered by {@see FieldRenderer}).
- Tab
- One tab of a settings page. Each tab registers under its own page slug (`{page}-{tab}`) so WordPress renders only the active tab's sections.