edit_user_created_user WordPress Action Hook
The edit_user_created_user hook is called whenever a user is created or edited. It is passed two arguments: the user ID and the user object. This hook can be used to modify the user object before it is saved to the database.
do_action( 'edit_user_created_user', int|WP_Error $user_id , string $notify ) #
Fires after a new user has been created.
Parameters
- $user_id
(int|WP_Error)ID of the newly created user or WP_Error on failure.
- $notify
(string)Type of notification that should happen. See wp_send_new_user_notifications() for more information.
Source
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |