woocommerce_email_reply_to_name filter-hookWC 10.4.0

Filter the reply-to name for emails.

Usage

add_filter( 'woocommerce_email_reply_to_name', 'wp_kama_woocommerce_email_reply_to_name_filter', 10, 3 );

/**
 * Function for `woocommerce_email_reply_to_name` filter-hook.
 * 
 * @param string   $reply_to_name Reply-to name.
 * @param WC_Email $email         WC_Email instance managing the email.
 * @param string   $default_name  Default reply-to name.
 *
 * @return string
 */
function wp_kama_woocommerce_email_reply_to_name_filter( $reply_to_name, $email, $default_name ){

	// filter...
	return $reply_to_name;
}
$reply_to_name(string)
Reply-to name.
$email(WC_Email)
WC_Email instance managing the email.
$default_name(string)
Default reply-to name.

Changelog

Since 10.4.0 Introduced.

Where the hook is called

WC_Email::get_reply_to_name()
woocommerce_email_reply_to_name
woocommerce/includes/emails/class-wc-email.php 1085
$reply_to_name = apply_filters( 'woocommerce_email_reply_to_name', get_option( 'woocommerce_email_reply_to_name', '' ), $this, $reply_to_name );

Where the hook is used in WooCommerce

Usage not found.