Filters the headers of the user request confirmation email.
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 $user_email The email address confirming a request. @type string $description Description of the action being performed so the user knows what the email is for. @type string $manage_url The link to click manage privacy requests of this type. @type string $sitename The site name sending the mail. @type string $siteurl The site URL sending the mail. @type string $admin_email The administrator email receiving the mail.}
$requestWP_User_Request
User request object.
$user_emailstring
The email address confirming a request.
$descriptionstring
Description of the action being performed so the user knows what the email is for.
$manage_urlstring
The link to click manage privacy requests of this type.
4404* @type string$manage_url The link to click manage privacy requests of this type.4405* @type string$sitename The site name sending the mail.4406* @type string$siteurl The site URL sending the mail.4407* @type string$admin_email The administrator email receiving the mail.4408*}4409*/4410$headers=apply_filters('user_request_confirmed_email_headers',$headers,$subject,$content,$request_id,$email_data);44114412$email_sent=wp_mail($email_data['admin_email'],$subject,$content,$headers);44134414if($email_sent){4415update_post_meta($request_id,'_wp_admin_notified',true);4416}
History
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.