wp_mail_from filter-hookWP 2.2.0

Filters the email address to send from.

Usage

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(string)
Email address to send from.

Changelog

Since 2.2.0 Introduced.

Where the hook is called

wp_mail()
wp_mail_from
wp-includes/pluggable.php 400
$from_email = apply_filters( 'wp_mail_from', $from_email );

Where the hook is used in WordPress

Usage not found.