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.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.0.3Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More