WordPress at a glance
filter is not described

rest_prepare_user filter-hook . WP 4.7.0

Filters user data returned from the REST API.


add_filter( 'rest_prepare_user', 'filter_function_name_6712', 10, 3 );
function filter_function_name_6712( $response, $user, $request ){
	// filter...

	return $response;
The response object.
User object used to create response.
Request object.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 966
return apply_filters( 'rest_prepare_user', $response, $user, $request );

Where the hook is used (in WP core)

Использование не найдено.