user_request_confirmed_email_to
Filter HookDescription
Filters the recipient of the data request confirmation notification. In a Multisite environment, this will default to the email address of the network admin because, by default, single site admins do not have the capabilities required to process requests. Some networks may wish to delegate those capabilities to a single-site admin, or a dedicated person responsible for managing privacy requests.Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 4206 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$admin_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_request_confirmed_email_to
add_filter('user_request_confirmed_email_to', 'my_custom_filter', 10, 2);
function my_custom_filter($admin_email, $request) {
// Your custom filtering logic here
return $admin_email;
}
Source Code Context
wp-includes/user.php:4206
- How this hook is used in WordPress core
<?php
4201 * @since 4.9.6
4202 *
4203 * @param string $admin_email The email address of the notification recipient.
4204 * @param WP_User_Request $request The request that is initiating the notification.
4205 */
4206 $admin_email = apply_filters( 'user_request_confirmed_email_to', get_site_option( 'admin_email' ), $request );
4207
4208 $email_data = array(
4209 'request' => $request,
4210 'user_email' => $request->email,
4211 'description' => $action_description,
PHP Documentation
<?php
/**
* Filters the recipient of the data request confirmation notification.
*
* In a Multisite environment, this will default to the email address of the
* network admin because, by default, single site admins do not have the
* capabilities required to process requests. Some networks may wish to
* delegate those capabilities to a single-site admin, or a dedicated person
* responsible for managing privacy requests.
*
* @since 4.9.6
*
* @param string $admin_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.