WC_Email::get_from_address
Get the from 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_from_address( $from_email );
- $from_email(string)
- Default wp_mail() email address to send from.
Default:''
WC_Email::get_from_address() WC Email::get from address code WC 10.8.1
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 );
}