apply_filters( 'user_request_confirmed_email_headers', string|array $headers, string $subject, string $content, int $request_id, array $email_data )
- Since
- 5.4.0
Filters the headers of the user request confirmation email.
Compatibility
- WordPress
- since 5.4.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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_RequestUser request object.$user_emailstringThe email address confirming a request.$descriptionstringDescription of the action being performed so the user knows what the email is for.$manage_urlstringThe link to click manage privacy requests of this type.$sitenamestringThe site name sending the mail.$siteurlstringThe site URL sending the mail.$admin_emailstringThe administrator email receiving the mail.
Where this hook fires · 1
wp-includes/user.php:4376_wp_privacy_send_request_confirmation_notification()
Source code
* @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. * } */ $headers = apply_filters( 'user_request_confirmed_email_headers', $headers, $subject, $content, $request_id, $email_data ); $email_sent = wp_mail( $email_data['admin_email'], $subject, $content, $headers ); if ( $email_sent ) { update_post_meta( $request_id, '_wp_admin_notified', true ); }Changelog
Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.