wp_privacy_personal_data_email_to хук-фильтр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 the wrong email.

Использование

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(строка)
The email address of the notification recipient.
$request(WP_User_Request)
The request that is initiating the notification.

Список изменений

С версии 5.3.0 Введена.

Где вызывается хук

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 );

Где используется хук в WordPress

Использование не найдено.