aam_user_is_denied_to_filter

Purpose

Override a target user permission decision.

Callback

Example

add_filter('aam_user_is_denied_to_filter', function ($result, $permission, $resource) {
    return $permission === 'myapp_export' ? true : $result;
}, 10, 3);

Denies a custom export permission for this target and preserves the existing result for other permissions.

See the complete hook list.