pre_user_email WordPress Filter Hook
The pre_user_email hook is used to modify the email address of a user prior to it being sent to the user. This hook can be used to change the email address of a user based on certain conditions. For example, you could use this hook to change the email address of a user if they have not confirmed their email address.
apply_filters( 'pre_user_email', string $raw_user_email ) #
Filters a user’s email before the user is created or updated.
Parameters
- $raw_user_email
(string)The user's email.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
2.0.3 | Introduced. |