apply_filters( 'rest_prepare_user', WP_REST_Response $response, object $user, WP_REST_Request $request )

Filters user data returned from the REST API.


Parameters

$response

The response object.

$user

User object used to create response.

$request

Request object.


Source

File: wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.7.0 Introduced.