um_rest_get_auser

Hook type

Filter

Description

Change output data for Rest API user authentification call

Parameters

$response

(array) Output Data

$field

(string) Field Key

$user_id

(int) User ID

Usage

<?php add_filter( 'um_rest_get_auser', 'function_name', 10, 3 ); ?>

Examples

<?php
add_filter( 'um_rest_get_auser', 'my_rest_get_auser', 10, 3 );
function my_rest_get_auser( $response, $field, $user_id ) {
    // your code here
return $response;
}
?>

Change Log

Since: 2.0

Source

um_rest_get_auser is located in includes/core/class-rest-api.php::line 574