I have a general Theme Options section that I created with ACF Pro and inside there is an ACF User type field that allows multiple values. The site is running WooCommerce and the basic idea is I need to able to specify certain Wholesale Users who should *only* pay by Check. All other Wholesalers and regular customers should pay by credit card.
When I test adding one Wholesale user to this custom field, it works great (that user correctly sees the Check payment method only). However, when I add a 2nd user to this field, that user incorrectly sees the credit card payment. It’s as if my code stops going through the array as soon as it checks the first value.
Any advice on adjusting this PHP I have in the functions would be greatly appreciated.