aam_is_capability_filter

Purpose

Decide whether a slug is treated as a capability.

Callback

Example

add_filter('aam_is_capability_filter', function ($is_capability, $capability) {
    return $capability === 'myapp_export' ? true : $is_capability;
}, 10, 2);

Treats myapp_export as a capability while leaving other slugs unchanged.

See the complete hook list.