wp_mail_original_content
Filters the original content of the email.
Give Post-By-Email extending plugins full access to the content, either the raw content, or the content of the last quoted-printable section.
Использование
add_filter( 'wp_mail_original_content', 'wp_kama_mail_original_content_filter' ); /** * Function for `wp_mail_original_content` filter-hook. * * @param string $content The original email content. * * @return string */ function wp_kama_mail_original_content_filter( $content ){ // filter... return $content; }
- $content(строка)
- The original email content.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
В файле: /wp-mail.php
wp-mail.php 193
$content = apply_filters( 'wp_mail_original_content', $content );