wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_user › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_prepare_user', $response, $user, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (WP_User) $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 );