wp_mail_from_name filter-hookWP 2.3.0

Filters the name to associate with the "from" email address.

Usage

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(string)
Name associated with the "from" email address.

Changelog

Since 2.3.0 Introduced.

Where the hook is called

wp_mail()
wp_mail_from_name
wp-includes/pluggable.php 409
$from_name = apply_filters( 'wp_mail_from_name', $from_name );

Where the hook is used in WordPress

Usage not found.