$settings_map
$settings_map : array
Class Admin_Settings
$settings_map : array
$settings_structure : array
get_api_key_field_ids() : mixed
Collect the ids of all `api_key` settings fields, mapped to the tab/section they live in.
The field type is only present in the settings structure (not in the settings map), so we
walk the structure tree ([tab]['sections']section['fields'][]).
The tab/section is captured so the migration notice can deep-link to the right settings page.
save_api_key_constants(array $settings) : array
Divert `api_key` field values to wp-config.php constants on settings save.
For every submitted api_key field: write (or update) its value as a UM_OPTION_<ID>
constant, or remove that constant when the value is empty; then strip the value from the
settings array and delete any legacy DB copy so the secret is never persisted to um_options.
Write failures are collected into a transient consumed by the admin notice.
Hooked on um_change_settings_before_save (priority 8, before sanitize/DB write).
| array | $settings | Settings about to be saved. |
collect_api_key_fields(array $fields, string $tab_key, string $section_key, array $result) : mixed
Push `api_key` fields from a fields list into the result set.
| array | $fields | List of field arrays. |
| string | $tab_key | Tab slug. |
| string | $section_key | Section slug. |
| array | $result | Accumulator, passed by reference. |