I am trying to stop all customer emails for order placed via rest-api in woocommerce. Im not the best at coding but I pieced together the following function. I suspect the w