woocommerce_email_from_address
Get the from address for outgoing emails.
Usage
add_filter( 'woocommerce_email_from_address', 'wp_kama_woocommerce_email_from_address_filter', 10, 2 ); /** * Function for `woocommerce_email_from_address` filter-hook. * * @param $from_email * @param $that * * @return */ function wp_kama_woocommerce_email_from_address_filter( $from_email, $that ){ // filter... return $from_email; }
- $from_email
- -
- $that
- -
Where the hook is called
woocommerce_email_from_address
woocommerce/includes/emails/class-wc-email.php 738
$from_email = apply_filters( 'woocommerce_email_from_address', get_option( 'woocommerce_email_from_address' ), $this, $from_email );