aam_normalize_role_identifier_filter

Purpose

Resolve a custom target role identifier.

Callback

Example

add_filter('aam_normalize_role_identifier_filter', function ($result, $resource_identifier) {
    if (empty($result) && $resource_identifier === 'myapp_editor') {
        return get_role('editor');
    }
    return $result;
}, 10, 2);

Resolves a custom role alias only when AAM has not already found a role.

See the complete hook list.