How to get type of the instance (production/sandbox/something else) using code

I was working on the plugin where logic had to work differently depending on the type of the instance, i.e. if code is executed in Sandbox environment – do A, if code is executed in Production – do B. I never developed anything similar before and search engines did not bring anything valuable. After research …

Continue Reading Andrew Butenko’s Article on their blog

How to get type of the instance (production/sandbox/something else) using code

I was working on the plugin where logic had to work differently depending on the type of the instance, i.e. if code is executed in Sandbox environment – do A, if code is executed in Production – do B. I never developed anything similar before and search engines did not bring anything valuable.

Blog Syndicated with Andrew Butenko’s Permission

Author: Andrew Butenko

Share This Post On
Share via
Copy link
Powered by Social Snap