user_erasure_complete_email_headers filter-hookWP 5.4.0

Deprecated from version 5.8.0. It is no longer supported and can be removed in future releases. See user_erasure_fulfillment_email_headers.

Filters the headers of the data erasure fulfillment notification.

Usage

add_filter( 'user_erasure_complete_email_headers', 'wp_kama_user_erasure_complete_email_headers_filter', 10, 3 );

/**
 * Function for `user_erasure_complete_email_headers` filter-hook.
 * 
 * @param string|array $headers The email headers.
 * @param string       $subject The email subject.
 * @param string       $content The email content.
 *
 * @return string|array
 */
function wp_kama_user_erasure_complete_email_headers_filter( $headers, $subject, $content ){

	// filter...
	return $headers;
}
$headers(string|array)
The email headers.
$subject(string)
The email subject.
$content(string)
The email content.

Changelog

Since 5.4.0 Introduced.
Deprecated since 5.8.0 Use {@see 'user_erasure_fulfillment_email_headers'} instead.

Where the hook is called

_wp_privacy_send_erasure_fulfillment_notification()
user_erasure_complete_email_headers
wp-includes/user.php 4484-4489
$headers = apply_filters_deprecated(
	'user_erasure_complete_email_headers',
	array( $headers, $subject, $content, $request_id, $email_data ),
	'5.8.0',
	'user_erasure_fulfillment_email_headers'
);

Where the hook is used in WordPress

Usage not found.