Filters user data returned from the REST API.
Parameters
$response
WP_REST_Response- The response object.
$user
WP_User- User object used to create response.
$request
WP_REST_Request- Request object.
Source
return apply_filters( 'rest_prepare_user', $response, $user, $request );
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.