user_registration_email
Filters the email address of a user being registered.
Usage
add_filter( 'user_registration_email', 'wp_kama_user_registration_email_filter' );
/**
* Function for `user_registration_email` filter-hook.
*
* @param string $user_email The email address of the new user.
*
* @return string
*/
function wp_kama_user_registration_email_filter( $user_email ){
// filter...
return $user_email;
}
- $user_email(string)
- The email address of the new user.
Changelog
| Since 2.1.0 | Introduced. |
Where the hook is called
wp-includes/user.php 3501
$user_email = apply_filters( 'user_registration_email', $user_email );