wp_privacy_personal_data_email_to filter-hookWP 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', 'wp_kama_privacy_personal_data_email_to_filter', 10, 2 );

/**
 * Function for `wp_privacy_personal_data_email_to` filter-hook.
 * 
 * @param string          $request_email The email address of the notification recipient.
 * @param WP_User_Request $request       The request that is initiating the notification.
 *
 * @return string
 */
function wp_kama_privacy_personal_data_email_to_filter( $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_send_personal_data_export_email()
wp_privacy_personal_data_email_to
wp-admin/includes/privacy-tools.php 623
$request_email = apply_filters( 'wp_privacy_personal_data_email_to', $request->email, $request );

Where the hook is used in WordPress

Usage not found.