Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-admin/user-new.php | apply_filters | 216 | /** * Filters the contents of the email sent when an existing user is invited to join the site. * * @since 5.6.0 * * @param array $new_user_email { * Used to build wp_mail(). * * @type string $to The email address of the invited user. * @type string $subject The subject of the email. * @type string $message The content of the email. * @type string $headers Headers. * } * @param int $user_id The invited user's ID. * @param array $role Array containing role information for the invited user. * @param string $newuser_key The key of the invitation. * */ |
wp-includes/user.php | apply_filters | 2099 | /** * Filters a username after it has been sanitized. * * This filter is called before the user is created or updated. * * @since 2.0.3 * * @param string $sanitized_user_login Username after it has been sanitized. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
string | $sanitized_user_login | Username after it has been sanitized. |