user_erasure_complete_email_headers
Устарел с версии 5.8.0. Больше не поддерживается и может быть удален. Смотрите user_erasure_fulfillment_email_headers.
Filters the headers of the data erasure fulfillment notification.
Использование
add_filter( 'user_erasure_complete_email_headers', 'wp_kama_user_erasure_complete_email_headers_filter', 10, 3 ); /** * Function for `user_erasure_complete_email_headers` filter-hook. * * @param string|array $headers The email headers. * @param string $subject The email subject. * @param string $content The email content. * * @return string|array */ function wp_kama_user_erasure_complete_email_headers_filter( $headers, $subject, $content ){ // filter... return $headers; }
- $headers(строка|массив)
- The email headers.
- $subject(строка)
- The email subject.
- $content(строка)
- The email content.
Список изменений
С версии 5.4.0 | Введена. |
Устарела с 5.8.0 | Use {@see 'user_erasure_fulfillment_email_headers'} instead. |
Где вызывается хук
user_erasure_complete_email_headers
wp-includes/user.php 4540-4545
$headers = apply_filters_deprecated( 'user_erasure_complete_email_headers', array( $headers, $subject, $content, $request_id, $email_data ), '5.8.0', 'user_erasure_fulfillment_email_headers' );