Based on Change COD default order status to "On Hold" instead of "Processing" in Woocommerce answer code, where I have changed the default status to "completed", how could set, by default, orders with Cash on delivery payment method (COD) to "completed" status for a specific user role?
What is missing from the code, is the specific user role. How to target a specific user role?
This would allow me to use the default WooCommerce cart experience to handle cash transactions at farmer's markets without needing to go back and remember specific transactions from a hectic and overheated day. This also means no reconciliation is necessary other than totaling the cash drawer and filtering the order records because the WooCommerce store is the single source of truth.