Filters the headers of the email sent when an account action is attempted.
Parameters
$headersstring|array
The email headers.
$subjectstring
The email subject.
$contentstring
The email content.
$request_idint
The request ID.
$email_dataarray
{ Data relating to the account action email. @type WP_User_Request $request User request object. @type string $email The email address this is being sent to. @type string $description Description of the action being performed so the user knows what the email is for. @type string $confirm_url The link to click on to confirm the account action. @type string $sitename The site name sending the mail. @type string $siteurl The site URL sending the mail.}
$requestWP_User_Request
User request object.
$emailstring
The email address this is being sent to.
$descriptionstring
Description of the action being performed so the user knows what the email is for.
$confirm_urlstring
The link to click on to confirm the account action.
4970* @type string$description Description of the action being performed so the user knows what the email is for.4971* @type string$confirm_url The link to click on to confirm the account action.4972* @type string$sitename The site name sending the mail.4973* @type string$siteurl The site URL sending the mail.4974*}4975*/4976$headers=apply_filters('user_request_action_email_headers',$headers,$subject,$content,$request_id,$email_data);49774978$email_sent=wp_mail($email_data['email'],$subject,$content,$headers);49794980if($switched_locale){4981restore_previous_locale();4982}
History
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.