edit_user_created_user

Fires after a new user has been created.

Description

do_action( 'edit_user_created_user', (int) $user_id, (string) $notify ); 

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.
  1. // run the action 
  2. do_action( 'edit_user_created_user', $user_id, $notify ); 
The following example is for adding a hook callback.
  1. // define the edit_user_created_user callback 
  2. function action_edit_user_created_user( $user_id, $notify ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'edit_user_created_user', 'action_edit_user_created_user', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. 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  
  1. do_action( 'edit_user_created_user', $user_id, $notify ); 
/wp-includes/default-filters.php  
  1. add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );