WordPress provides constants and functions for setting up and checking to see if we’re in development mode. Specifically, see the following: But if you’re in a situation in which you’re working on code that’s, say, WordPress-adjacent where it both talks to third-party APIs and services but also sends…
Use Custom Functions to Determine Which Environment You’re Running Your Code
Full Disclosure: This webpage may contain affiliate links, in which the website owner would receive a commission for purchases made. This does not affect your purchase cost.