PHP Cross Reference of WordPress Subversion HEAD

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]

title

Body

[close]

/wp-includes/ -> registration.php (summary)

(no description)

File Size: 210 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 7 functions

  username_exists()
  email_exists()
  validate_username()
  wp_insert_user()
  wp_update_user()
  wp_create_user()
  create_user()

Functions
Functions that are not part of a class:

username_exists( $username )   X-Ref
Checks whether the given username exists.

param: string $username Username.
return: mixed The user's ID on success, and null on failure.

email_exists( $email )   X-Ref
Checks whether the given email exists.

param: string $email Email.
return: mixed The user's ID on success, and false on failure.

validate_username( $username )   X-Ref
Checks whether an username is valid.

param: string $username Username.
return: bool A filtered boolean.

wp_insert_user($userdata)   X-Ref
Insert an user into the database.

param: array $userdata An array of user data.
return: int The newly created user's ID.

wp_update_user($userdata)   X-Ref
Update an user in the database.

param: array $userdata An array of user data.
return: int The updated user's ID.

wp_create_user($username, $password, $email = '')   X-Ref
A simpler way of inserting an user into the database.
See also: wp_insert_user().

param: string $username The user's username.
param: string $password The user's password.
param: string $email The user's email (optional).
return: int The new user's ID.

create_user($username, $password, $email)   X-Ref
An alias of wp_create_user().

param: string $username The user's username.
param: string $password The user's password.
param: string $email The user's email (optional).
return: int The new user's ID.



Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs Cross-referenced by PHPXref 0.6 and RedAlt