wphooks.info - network_user_new_created_user

network_user_new_created_user

The hook occurs in the following file:

wp-admin/network/user-new.php:
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
		if ( ! $user_id ) {
	 		$add_user_errors = new WP_Error( 'add_user_fail', __( 'Cannot add user.' ) );
		} else {
			/**
			  * Fires after a new user has been created via the network user-new.php page.
			  *
			  * @since 4.4.0
			  *
			  * @param int $user_id ID of the newly created user.
			  */
			do_action( 'network_user_new_created_user', $user_id );
			wp_redirect( add_query_arg( array('update' => 'added', 'user_id' => $user_id ), 'user-new.php' ) );
			exit;
		}
	}
}

if ( isset($_GET['update']) ) {
	$messages = array();
	if ( 'added' == $_GET['update'] ) {