Possible to identify whether current admin user is impersonating another user?
-
Amazing plugin, thank you.
My client is an ADHD coach and I’ve set up a Gravity Forms/Simply Schedule Appointments booking system so her clients can book and pay for sessions. At the moment they have to pay up-front via Stripe to save their booking.
This all works great, but my client also wants to be able to book on their behalf without payment. So what I need to do is conditionally show or hide the payment form element if the current user is an admin who is impersonating a client.
I couldn’t find an obvious way to do this in the docs or the support forum, but I guess there has to be a state being stored somewhere so that admins can switch back to their accounts.
Any ideas how I could tackle this?
Thanks again,
Steve
- You must be logged in to reply to this topic.