Filter hook 'user_erasure_fulfillment_email_subject'

in WP Core File wp-includes/user.php at line 4474

View Source

user_erasure_fulfillment_email_subject

Filter Hook
Description
Filters the subject of the email sent when an erasure request is completed. to the value of `$request->email`, but can be changed by the `user_erasure_fulfillment_email_to` filter. }

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Filter
Line Number 4474

Hook Parameters

Type Name Description
string $subject The email subject.
string $sitename The name of the site.
array $email_data { Data relating to the account action email.

Usage Examples

Basic Usage
<?php
// Hook into user_erasure_fulfillment_email_subject
add_filter('user_erasure_fulfillment_email_subject', 'my_custom_filter', 10, 3);

function my_custom_filter($subject, $sitename, $email_data) {
    // Your custom filtering logic here
    return $subject;
}

Source Code Context

wp-includes/user.php:4474 - How this hook is used in WordPress core
<?php
4469  	 *     @type string          $privacy_policy_url Privacy policy URL.
4470  	 *     @type string          $sitename           The site name sending the mail.
4471  	 *     @type string          $siteurl            The site URL sending the mail.
4472  	 * }
4473  	 */
4474  	$subject = apply_filters( 'user_erasure_fulfillment_email_subject', $subject, $email_data['sitename'], $email_data );
4475  
4476  	/* translators: Do not translate SITENAME, SITEURL; those are placeholders. */
4477  	$content = __(
4478  		'Howdy,
4479  

PHP Documentation

<?php
/**
	 * Filters the subject of the email sent when an erasure request is completed.
	 *
	 * @since 5.8.0
	 *
	 * @param string $subject    The email subject.
	 * @param string $sitename   The name of the site.
	 * @param array  $email_data {
	 *     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.
	 * }
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 3
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.