do_action( 'rest_insert_user', WP_User $user, WP_REST_Request $request, bool $creating )
Fires immediately after a user is created or updated via the REST API.
Parameters
- $user
-
(WP_User) Inserted or updated user object.
- $request
-
(WP_REST_Request) Request object.
- $creating
-
(bool) True when creating a user, false when updating.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_insert_user