user_erasure_fulfillment_email_to хук-фильтрWP 4.9.6

Filters the recipient of the data erasure fulfillment notification.

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

add_filter( 'user_erasure_fulfillment_email_to', 'wp_kama_user_erasure_fulfillment_email_to_filter', 10, 2 );

/**
 * Function for `user_erasure_fulfillment_email_to` filter-hook.
 * 
 * @param string          $user_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_user_erasure_fulfillment_email_to_filter( $user_email, $request ){

	// filter...
	return $user_email;
}
$user_email(строка)
The email address of the notification recipient.
$request(WP_User_Request)
The request that is initiating the notification.

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

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

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

_wp_privacy_send_erasure_fulfillment_notification()
user_erasure_fulfillment_email_to
wp-includes/user.php 4235
$user_email = apply_filters( 'user_erasure_fulfillment_email_to', $request->email, $request );

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

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