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



rest_pre_insert_user › WordPress Filter Hooks

Since4.7.0
Deprecatedn/a
apply_filters( 'rest_pre_insert_user', $prepared_user, $request )
Parameters: (2)
  • (object) $prepared_user User object.
    Required: Yes
  • (WP_REST_Request) $request Request object.
    Required: Yes
Defined at:
Codex:

Filters user data before insertion via the REST API.





Source

return apply_filters( 'rest_pre_insert_user', $prepared_user, $request );