wp_mail_from_name
Filters the name to associate with the "from" email address.
Использование
add_filter( 'wp_mail_from_name', 'wp_kama_mail_from_name_filter' );
/**
* Function for `wp_mail_from_name` filter-hook.
*
* @param string $from_name Name associated with the "from" email address.
*
* @return string
*/
function wp_kama_mail_from_name_filter( $from_name ){
// filter...
return $from_name;
}
- $from_name(строка)
- Name associated with the "from" email address.
Список изменений
| С версии 2.3.0 | Введена. |
Где вызывается хук
wp_mail_from_name
wp-includes/pluggable.php 444
$from_name = apply_filters( 'wp_mail_from_name', $from_name );