aam_react_bootstrap_filter
Purpose
Change AAM UI bootstrap data for an access level.
Callback
- Type: Filter.
- Arguments:
$payload,$access_level. - Return: the filtered first argument.
Example
add_filter('aam_react_bootstrap_filter', function ($payload, $access_level) {
$payload['myapp'] = ['enabled' => (bool) get_option('myapp_enabled')];
return $payload;
}, 10, 2);
Adds application data to the AAM workspace bootstrap payload without changing AAM’s existing fields.
See the complete hook list.