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.


Top ↑

Parameters

$request_email

(string)The email address of the notification recipient.

$request

(WP_User_Request)The request that is initiating the notification.


Top ↑

Source

File: wp-admin/includes/privacy-tools.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.