Last active
November 5, 2018 11:00
-
-
Save nicomollet/b74843dff930f35374cffeb6926a3379 to your computer and use it in GitHub Desktop.
WordPress Data Request/Removal Tool email confirmation recipient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 $email The email address of the notification recipient. | |
* @param WP_User_Request $request_data The request that is initiating the notification. | |
*/ | |
function custom_user_request_confirmed_email_to($email, $request_data){ | |
$email = "dpo@domain.com"; | |
return $email; | |
} | |
add_filter( 'user_request_confirmed_email_to', 'custom_user_request_confirmed_email_to', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment