Shop as customer changes user role in the back end as well?
I am enabling / disabling payment gateways depending on user roles, so I have an action hook were I check the current user role, and adjust the gateways accordingly.
If I switch user using your plugin, would the user role in the back end change also (thus invalidating my code), or will it stay 'administrator' / 'shop_manager'?
wanted to follow up on my last questions:
- is there anything I can use to understand I am in a "switched user state"? like a wp_option or else?
- and if not, are there any action / filter hooks provided by your plugin to do custom things when enter/exit switched state?
TY a million for any help