wp_privacy_personal_data_email_to
Filter HookDescription
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.Hook Information
File Location |
wp-admin/includes/privacy-tools.php
View on GitHub
|
Hook Type | Filter |
Line Number | 623 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$request_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 wp_privacy_personal_data_email_to
add_filter('wp_privacy_personal_data_email_to', 'my_custom_filter', 10, 2);
function my_custom_filter($request_email, $request) {
// Your custom filtering logic here
return $request_email;
}
Source Code Context
wp-admin/includes/privacy-tools.php:623
- How this hook is used in WordPress core
<?php
618 * @since 5.3.0
619 *
620 * @param string $request_email The email address of the notification recipient.
621 * @param WP_User_Request $request The request that is initiating the notification.
622 */
623 $request_email = apply_filters( 'wp_privacy_personal_data_email_to', $request->email, $request );
624
625 $email_data = array(
626 'request' => $request,
627 'expiration' => $expiration,
628 'expiration_date' => $expiration_date,
PHP Documentation
<?php
/**
* 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.
*
* @since 5.3.0
*
* @param string $request_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-admin/includes/privacy-tools.php
Related Hooks
Related hooks will be displayed here in future updates.