apply_filters( ‘wp_pre_insert_user_data’, , , , )
In this article
Filters user data before the record is created or updated.
Description
It only includes data in the users table, not any user metadata.
Parameters
$dataarray- Values and keys for the user.
user_loginstringThe user’s login. Only included if $update == falseuser_passstringThe user’s password.user_emailstringThe user’s email.user_urlstringThe user’s url.user_nicenamestringThe user’s nice name. Defaults to a URL-safe version of user’s login.display_namestringThe user’s display name.user_registeredstringMySQL timestamp describing the moment when the user registered. Defaults to the current UTC timestamp.
$updatebool- Whether the user is being updated rather than created.
$user_idint|null- ID of the user to be updated, or NULL if the user is being created.
$userdataarray- The raw array of data passed to wp_insert_user() .
Source
$data = apply_filters( 'wp_pre_insert_user_data', $data, $update, ( $update ? $user_id : null ), $userdata );
Related
| Used by | Description |
|---|---|
wp_insert_user()wp-includes/user.php | Inserts a user into the database. |
Changelog
User Contributed Notes
You must log in before being able to contribute a note or feedback.
