aam_settings_list_filter
Purpose
Change settings entries for a settings group.
Callback
- Type: Filter.
- Arguments:
$settings,$group. - Return: the filtered first argument.
Example
add_filter('aam_settings_list_filter', function ($settings, $group) {
if ($group === 'core') {
$settings['myapp.notice'] = [
'title' => 'MyApp notice',
'description' => 'Show the integration notice.',
'value' => (bool) get_option('myapp_notice_enabled'),
];
}
return $settings;
}, 10, 2);
Adds one setting to the core settings group. Store updates in your integration’s own settings handler.
See the complete hook list.