• Resolved markyeoj

    (@markyeoj)


    Hello we want to have a different ‘FROM’ email address for customer related emails.

    Here’s my code, and this is not working properly, it overrides the entire settings.

    Is there an easiest way to do this?

    // Change sender adress
    add_filter( 'woocommerce_email_from_address', function( $from_email, $wc_email ){
        if( $wc_email->id == 'customer_on_hold_order' || 'customer_processing_order' || 'customer_completed_order' || 'customer_refunded_order' || 'customer_new_account')
            $from_email = '[email protected]';
    	
        return $from_email;
    }, 10, 2 );
    • This topic was modified 3 years, 8 months ago by markyeoj.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change ‘FROM’ email address for customer related emails’ is closed to new replies.