• Resolved bitma

    (@bitma)


    Hi,

    New subscribers get an email for processing order. Can I disable that somehow? I still want the email to be sent for normal orders (non-subscriptions).

    Thanks,

    Andreas

Viewing 1 replies (of 1 total)
  • Thread Starter bitma

    (@bitma)

    I managed to fix this with this simple plugin I made:

    function wc_disable_new_order_email_for_subscribers( $recipient, $order ) {
    global $woocommerce;
    if (current_user_can( ‘subscriber’ )) {
    $recipient = “”;
    }
    return $recipient;
    }

    add_filter(‘woocommerce_email_recipient_customer_processing_order’, ‘wc_disable_new_order_email_for_subscribers’, 1, 2);

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: WC Subscriptions] disable email for processing order’ is closed to new replies.