edit_user_created_user
Fires after a new user has been created.
Description
Parameters (2)
- 0. $user_id (int)
- ID of the newly created user.
- 1. $notify (string)
- Type of notification that should happen. See
wp_send_new_user_notifications(…)
for more information on possible values.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'edit_user_created_user', $user_id, $notify );
- The following example is for adding a hook callback.
- // define the edit_user_created_user callback
- function action_edit_user_created_user( $user_id, $notify ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'edit_user_created_user', 'action_edit_user_created_user', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'edit_user_created_user', 'action_edit_user_created_user', 10, 2 );
Defined (2)
The action is defined in the following location(s).
- /wp-admin/includes/user.php
- do_action( 'edit_user_created_user', $user_id, $notify );
- /wp-includes/default-filters.php
- add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );