aam_rest_authenticated_user_data_filter

Purpose

Change the REST authentication response.

Callback

Example

add_filter('aam_rest_authenticated_user_data_filter', function ($response, $request, $user) {
    $response['myapp_site'] = get_current_blog_id();
    return $response;
}, 10, 3);

Adds the current site ID to the REST authentication response. Avoid adding secrets or unnecessary personal data.

See the complete hook list.