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
-
Inserted or updated user object.
- $request
-
Request object.
- $creating
-
True when creating a user, false when updating.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
Changelog
Version | Description |
---|---|
WP-4.7.0 | Introduced. |