wphooks.info - network_user_new_created_user

network_user_new_created_user

(trunk - 5.0-alpha-42732)

The hook occurs in the following file:

wp-admin/network/user-new.php:
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
		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;