• I want to be able to set the reply-to email address of my admin new order emails so my drivers/pickers can just reply to the email with an update and this will be sent to an admin email of ours not the customer who ordered.

    I’ve managed to get this working

    // reply to all email address

    add_filter( ‘woocommerce_email_headers’, ‘reply_email_address’, 10, 2 );

    function reply_email_address ( $headers ) {
    $headers = array(‘Reply-To: email name <[email protected]>’);

    return $headers;
    }

    but this apply s to all emails when i only want it to apply to admin new order emails. I’ve created the below but it’s not working. can someone please help

    // Change WooCommerce reply to email address for new order email only

    add_filter( ‘woocommerce_email_headers’, ‘wc_change_email_reply_address’, 10, 3 );

    function wc_change_email_reply_address ( $headers, $obj ) {
    // For Admin New Order Emails
    if ( is_a( $obj, ‘WC_Email_New_Order’ ) ) {
    $headers = array(‘Reply-To: email name <[email protected]>’);
    }

    return $headers;
    }

    The page I need help with: [log in to see the link]

  • The topic ‘Reply to Email address change’ is closed to new replies.