I have a custom user field defined in WordPress, (Boolean)Authorized. I defined this field using another plugin (MemberPress) and it's accessible using the slug mepr_authorized.
I would like to check this field in the WooCommerce checkout process. If it's FALSE/0, then the user should not be able to complete the checkout process - and instead be presented with UI indicating as such. The field itself should not be displayed in an editable fashion.
Any ideas how I can do this?
One thought I had was a custom, non-editable but required field in WooCommerce, that I would automatically set via PHP (basically retrieve the user value and assign it). Is this feasible?
Any feedback is awesome. Thanks!