pre_user_{$field} WordPress Filter Hook
The pre_user_$field hook is triggered before the user_$field database table is updated. It can be used to modify the user data before it is saved to the database.
apply_filters( "pre_user_{$field}", mixed $value ) #
Filters the value of a user field in the ‘db’ context.
Description
The dynamic portion of the hook name, $field
, refers to the prefixed user field being filtered, such as ‘user_login’, ‘user_email’, ‘first_name’, etc.
Parameters
- $value
(mixed)Value of the prefixed user field.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |