function disable_email_notify_by_custom_status( $recipient, $order ) {
global $woocommerce;
$cust_status = $order->get_status();
if ($cust_status == 'my-status'){
$recipient = '';
return $recipient;
}
}
add_filter( 'woocommerce_email_recipient_customer_processing_order', 'disable_email_notify_by_custom_status', 10, 2 );
npm run
. Верно?