wp_privacy_personal_data_email_to WordPress Filter Hook
The wp_privacy_personal_data_email_to hook allows you to modify the email address that is used when sending personal data to a user. By default, the personal data is sent to the user's email address, but you can use this hook to change the address to another email address.
apply_filters( 'wp_privacy_personal_data_email_to', string $request_email , WP_User_Request $request ) #
Filters the recipient of the personal data export email notification.
Description
Should be used with great caution to avoid sending the data export link to wrong emails.
Parameters
- $request_email
(string)The email address of the notification recipient.
- $request
(WP_User_Request)The request that is initiating the notification.
Source
Changelog
Version | Description |
---|---|
5.3.0 | Introduced. |