WC_Email::get_from_name()publicWC 1.0

Get the from name for outgoing emails.

Method of the class: WC_Email{}

Hooks from the method

Return

String.

Usage

$WC_Email = new WC_Email();
$WC_Email->get_from_name( $from_name );
$from_name(string)
Default wp_mail() name associated with the "from" email address.
Default: ''

WC_Email::get_from_name() code WC 8.6.1

public function get_from_name( $from_name = '' ) {
	$from_name = apply_filters( 'woocommerce_email_from_name', get_option( 'woocommerce_email_from_name' ), $this, $from_name );
	return wp_specialchars_decode( esc_html( $from_name ), ENT_QUOTES );
}