WC_Email::get_from_address()publicWC 1.0

Get the from address 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_address( $from_email );
$from_email(string)
Default wp_mail() email address to send from.
Default: ''

WC_Email::get_from_address() code WC 8.7.0

public function get_from_address( $from_email = '' ) {
	$from_email = apply_filters( 'woocommerce_email_from_address', get_option( 'woocommerce_email_from_address' ), $this, $from_email );
	return sanitize_email( $from_email );
}