Filters user data before insertion via the REST API.
Parameters
$prepared_user
object- User object.
$request
WP_REST_Request- Request object.
Source
return apply_filters( 'rest_pre_insert_user', $prepared_user, $request );
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.