WC_Email::get_reply_to_addresspublicWC 1.0

Get the reply-to address for outgoing emails.

Method of the class: WC_Email{}

Hooks from the method

Returns

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_reply_to_address( $reply_to_email );
$reply_to_email(string)
Default reply-to email address.
Default: ''

WC_Email::get_reply_to_address() code WC 10.7.0

public function get_reply_to_address( $reply_to_email = '' ) {
	/**
	 * Filter the reply-to address for emails.
	 *
	 * @since 10.4.0
	 * @param string   $reply_to_email Reply-to email address.
	 * @param WC_Email $email          WC_Email instance managing the email.
	 * @param string   $default_email  Default reply-to email address.
	 */
	$reply_to_email = apply_filters( 'woocommerce_email_reply_to_address', get_option( 'woocommerce_email_reply_to_address', '' ), $this, $reply_to_email );
	return sanitize_email( $reply_to_email );
}