Quickly Determine Server & Environment Details

Posted by Prem Tiwari | Updated on

If you have multiple servers and multiple environments such as development, QA, and production environments, this can be very useful.

For my systems, environment is determined by the first 3 letters of the hostname, but this could easily be changed to whatever suits your needs.

This has saved me many times from making updates to the wrong environment. You can also turn this into a plugin and network activate it so all sites get the notification.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers