I am looking for a way to not have to manually exclude products from coupons based upon the product ID that the coupon should apply to. Thus, build an array of all product IDs in the shop that will then populate the excluded products field minus the product ID (or IDs) that the coupon does apply to.
I was thinking to use "Disable coupons & discounts from applying to defined Woocommerce products in cart" answer making some changes to it, but as I am new to WP/WC queries and functions, I didn't get something functional yet.