Settings
Overview
MAC Core currently exposes two settings modules:
Core PoliciesMedia Policies
These are rendered in the MAC Core -> Settings tab and saved under a single WordPress option:
mac_core_settings
How the Settings Screen Is Organized
At runtime, the settings page:
- loads sections from
SettingsSchema - groups fields by their configured
group - renders them inside the
Settingstab - normalizes and sanitizes values through the settings repository before saving
This keeps the admin UI, defaults, and stored values aligned with the schema rather than with ad hoc form behavior.
Current Modules
| Module | Purpose |
|---|---|
core | Shared site-wide behavior for branding, admin, comments, updates, content, and uninstall cleanup. |
media | Shared image-size, upload, and compression behavior. |
Value Normalization
The settings repository applies the field type defined in the schema:
checkbox-> booleantext-> sanitized textkey-> sanitized role or capability style keyurl-> sanitized URLinteger-> clamped integercsv_int-> unique positive integer listcsv_string-> unique normalized token list
This matters most for the list-based media settings, because builders can use either comma-separated or line-separated input in the admin UI.