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.
4864* @type string$description Description of the action being performed so the user knows what the email is for.4865* @type string$confirm_url The link to click on to confirm the account action.4866* @type string$sitename The site name sending the mail.4867* @type string$siteurl The site URL sending the mail.4868*}4869*/4870$headers=apply_filters('user_request_action_email_headers',$headers,$subject,$content,$request_id,$email_data);48714872$email_sent=wp_mail($email_data['email'],$subject,$content,$headers);48734874if($switched_locale){4875restore_previous_locale();4876}
History
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.