wppaste
WordPress

apply_filters( 'wp_privacy_personal_data_email_headers', string|array $headers, string $subject, string $content, int $request_id, array $email_data )

Since
5.4.0
Filters the headers of the email sent with a personal data export file.

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 int $expiration The time in seconds until the export file expires. @type string $expiration_date The localized date and time when the export file expires. @type string $message_recipient The address that the email will be sent to. Defaults to the value of $request->email, but can be changed by the wp_privacy_personal_data_email_to filter. @type string $export_file_url The export file URL. @type string $sitename The site name sending the mail. @type string $siteurl The site URL sending the mail.}
  • $requestWP_User_Request

    User request object.
  • $expirationint

    The time in seconds until the export file expires.
  • $expiration_datestring

    The localized date and time when the export file expires.
  • $message_recipientstring

    The address that the email will be sent to. Defaults to the value of $request->email, but can be changed by the wp_privacy_personal_data_email_to filter.
  • $export_file_urlstring

    The export file URL.
  • $sitenamestring

    The site name sending the mail.
  • $siteurlstring

    The site URL sending the mail.

Fired at · 1

  • wp-admin/includes/privacy-tools.php:737wp_privacy_send_personal_data_export_email()

Source

	 *                                              by the `wp_privacy_personal_data_email_to` filter.	 *     @type string          $export_file_url   The export file URL.	 *     @type string          $sitename          The site name sending the mail.	 *     @type string          $siteurl           The site URL sending the mail.	 * }	 */	$headers = apply_filters( 'wp_privacy_personal_data_email_headers', $headers, $subject, $content, $request_id, $email_data ); 	$mail_success = wp_mail( $request_email, $subject, $content, $headers ); 	if ( $switched_locale ) {		restore_previous_locale();	}

History

Introduced in 5.4.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 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.