A WordPress-centric search engine for devs and theme authors



rest_prepare_user ›

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_prepare_user', $response, $user, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (object) $user User object used to create response.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

Filters user data returned from the REST API.





Source

return apply_filters( 'rest_prepare_user', $response, $user, $request );