wp_mail_from
Filters the email address to send from.
Использование
add_filter( 'wp_mail_from', 'wp_kama_mail_from_filter' );
/**
* Function for `wp_mail_from` filter-hook.
*
* @param string $from_email Email address to send from.
*
* @return string
*/
function wp_kama_mail_from_filter( $from_email ){
// filter...
return $from_email;
}
- $from_email(строка)
- Email address to send from.
Список изменений
| С версии 2.2.0 | Введена. |
Где вызывается хук
wp_mail_from
wp-includes/pluggable.php 437
$from_email = apply_filters( 'wp_mail_from', $from_email );