wp_privacy_personal_data_email_to filter-hook . WP 5.3.0
Filters the recipient of the personal data export email notification. Should be used with great caution to avoid sending the data export link to wrong emails.
Usage
add_filter( 'wp_privacy_personal_data_email_to', 'filter_function_name_6568', 10, 2 ); function filter_function_name_6568( $request_email, $request ){ // filter... return $request_email; }
- $request_email(string)
- The email address of the notification recipient.
- $request(WP_User_Request)
- The request that is initiating the notification.
Changelog
Since 5.3.0 | Introduced. |
Where the hook is called
wp_privacy_personal_data_email_to
wp-admin/includes/privacy-tools.php 591
$request_email = apply_filters( 'wp_privacy_personal_data_email_to', $request->email, $request );