Filter: um_rest_get_auser

apply_filters( 'um_rest_get_auser', $response, $field, $user_id ) → {array}

Filters the output data for Rest API user authentication call.

Parameters:
Name Type Description
$response array

REST API response.

$field string

Field Options.

$user_id int

User ID.

Since:
  • 2.0
Source:
Returns:

REST API response.

Type
array
Example

Force change the output data for Rest API user authentication call.

function my_custom_um_rest_get_auser( $response, $field, $user_id  ) {
    // your code here
    return $response;
}
add_filter( 'um_rest_get_auser', 'my_custom_um_rest_get_auser', 10, 3 );