wpmu_create_user


wpmu_create_user ( $user_name, $password, $email )

Parameters:
  • (string) user_name The new user's login name.
  • (string) password The new user's password.
  • (string) email The new user's email address.
Returns:
  • (int|false) Returns false on failure, or int $user_id on success.
Defined at:
Change Log:
  • M: U

Description

Creates a user.This function runs when a user self-registers as well as when a Super Admin creates a new user. Hook to {@see 'wpmu_new_user'} for events that should affect all new users, but only on Multisite (otherwise use {@see 'user_register'}).

Related Functions

wp_create_user, create_user, wpmu_delete_user, wp_create_term, wpmu_create_blog

Top Google Results

User discussions

wpseek mobile