wppaste
WordPress

apply_filters_deprecated( 'user_erasure_complete_email_subject', string $subject, string $sitename, array $email_data )

Since
4.9.8
Filters the subject of the email sent when an erasure request is completed.

Compatibility

Deprecated in WordPress 5.8.0. Use {@see 'user_erasure_fulfillment_email_subject'} instead.

WordPress
since 4.9.8
  • 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

$subjectstring
The email subject.
$sitenamestring
The name of the site.
$email_dataarray
{ Data relating to the account action email.
@type WP_User_Request $request User request object.
@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 user_erasure_fulfillment_email_to filter.
@type string $privacy_policy_url Privacy policy 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.
  • $message_recipientstring

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

    Privacy policy URL.
  • $sitenamestring

    The site name sending the mail.
  • $siteurlstring

    The site URL sending the mail.

Where this hook fires · 1

  • wp-includes/user.php:4551_wp_privacy_send_erasure_fulfillment_notification()

Source code

	 *                                               by the `user_erasure_fulfillment_email_to` filter.	 *     @type string          $privacy_policy_url Privacy policy URL.	 *     @type string          $sitename           The site name sending the mail.	 *     @type string          $siteurl            The site URL sending the mail.	 * }	 */	$subject = apply_filters_deprecated(		'user_erasure_complete_email_subject',		array( $subject, $email_data['sitename'], $email_data ),		'5.8.0',		'user_erasure_fulfillment_email_subject'	);

Changelog

Introduced in 4.9.8. 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.

5.8.0
Deprecated. Use 'user_erasure_fulfillment_email_subject' instead.from the docblock
4.9.8
Introduced.from the docblock

About this page

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