um_rest_userdata
Hook type
Filter
Description
Change output data for Rest API userdata call
Parameters
$value
(array) Output Data
$user_id
(string) User ID
Usage
<?php add_filter( 'um_rest_userdata', 'function_name', 10, 2 ); ?>
Examples
<?php add_filter( 'um_rest_userdata', 'my_rest_userdata', 10, 2 ); function my_rest_userdata( $value, $user_id ) { // your code here return $value; } ?>
Change Log
Since: 2.0
Source
um_rest_userdata
is located in includes/core/class-rest-api.php::line 641