WC_Email::get_reply_to_namepublicWC 1.0

Get the reply-to name 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_name( $reply_to_name );
$reply_to_name(string)
Default reply-to name.
Default: ''

WC_Email::get_reply_to_name() code WC 10.7.0

public function get_reply_to_name( $reply_to_name = '' ) {
	/**
	 * Filter the reply-to name for emails.
	 *
	 * @since 10.4.0
	 * @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.
	 */
	$reply_to_name = apply_filters( 'woocommerce_email_reply_to_name', get_option( 'woocommerce_email_reply_to_name', '' ), $this, $reply_to_name );
	return wp_specialchars_decode( sanitize_text_field( $reply_to_name ), ENT_QUOTES );
}