edit_user_created_user
Fires after a new user has been created.
Usage
add_action( 'edit_user_created_user', 'wp_kama_edit_user_created_action', 10, 2 );
/**
* Function for `edit_user_created_user` action-hook.
*
* @param int|WP_Error $user_id ID of the newly created user or WP_Error on failure.
* @param string $notify Type of notification that should happen. See wp_send_new_user_notifications() for more information.
*
* @return void
*/
function wp_kama_edit_user_created_action( $user_id, $notify ){
// action...
}
- $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.
Changelog
| Since 4.4.0 | Introduced. |
Where the hook is called
wp-admin/includes/user.php 247
do_action( 'edit_user_created_user', $user_id, $notify );
Where the hook is used in WordPress
wp-includes/default-filters.php 528
add_action( 'edit_user_created_user', 'wp_send_new_user_notifications', 10, 2 );