apply_filters( 'wp_pre_insert_user_data', array $data , bool $update , int|null $id )
Filters user data before the record is created or updated.
Description Description
It only includes data in the wp_users table wp_user, not any user metadata.
Parameters Parameters
- $data
-
(array) Values and keys for the user.
- 'user_login'
(string) The user's login. Only included if $update == false - 'user_pass'
(string) The user's password. - 'user_email'
(string) The user's email. - 'user_url'
(string) The user's url. - 'user_nicename'
(string) The user's nice name. Defaults to a URL-safe version of user's login - 'display_name'
(string) The user's display name. - 'user_registered'
(string) MySQL timestamp describing the moment when the user registered. Defaults to the current UTC timestamp.
- 'user_login'
- $update
-
(bool) Whether the user is being updated rather than created.
- $id
-
(int|null) ID of the user to be updated, or NULL if the user is being created.
Source Source
File: wp-includes/user.php
Changelog Changelog
Version | Description |
---|---|
4.9.0 | Introduced. |