Filter hook 'user_erasure_fulfillment_email_to'

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

View Source

user_erasure_fulfillment_email_to

Filter Hook
Description
Filters the recipient of the data erasure fulfillment notification.

Hook Information

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

Hook Parameters

Type Name Description
string $user_email The email address of the notification recipient.
WP_User_Request $request The request that is initiating the notification.

Usage Examples

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

function my_custom_filter($user_email, $request) {
    // Your custom filtering logic here
    return $user_email;
}

Source Code Context

wp-includes/user.php:4412 - How this hook is used in WordPress core
<?php
4407  	 * @since 4.9.6
4408  	 *
4409  	 * @param string          $user_email The email address of the notification recipient.
4410  	 * @param WP_User_Request $request    The request that is initiating the notification.
4411  	 */
4412  	$user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request );
4413  
4414  	$email_data = array(
4415  		'request'            => $request,
4416  		'message_recipient'  => $user_email,
4417  		'privacy_policy_url' => get_privacy_policy_url(),

PHP Documentation

<?php
/**
	 * Filters the recipient of the data erasure fulfillment notification.
	 *
	 * @since 4.9.6
	 *
	 * @param string          $user_email The email address of the notification recipient.
	 * @param WP_User_Request $request    The request that is initiating the notification.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.