aam_init_config_filter

Purpose

Modify the configuration array when AAM loads it.

Callback

Example

add_filter('aam_init_config_filter', function ($configs) {
    $configs['myapp.feature.enabled'] = $configs['myapp.feature.enabled'] ?? true;
    return $configs;
}, 10, 1);

Adds a default config key without overwriting a value already loaded from ConfigPress.

See the complete hook list.