aam_role_created_action

Purpose

Run after a role is created through REST.

Callback

Example

add_action('aam_role_created_action', function ($role, $request) {
    error_log('AAM created role: ' . $role->name);
}, 10, 2);

Runs after a successful REST role creation; the request is also available for context.

See the complete hook list.