Problem
When using wordpress our theme (or some other component) might want to check a wordpress defined variable. In a regular install of WordPress (single site), you can access them directly because they are defined in wp-config.php.
We can access this on only the base site of our multi-site install. However, if we use it, we would have to litter our theme with inconsistent access methods, or worse, duplicate code depending on our site.
How can we access this in our multi-site install?
Solution
You can define variables in wordpress via the web interface. Strangely, these aren’t run through define(), hence the above doesn’t work. I end up with something like the following:
If you’re checking the language, nothing appears. As luck would have it, you can simple use the get_bloginfo() method to pull this same information.
Conclusion
This might not map for all variables that you can define for wordpress in wp-config.php. Moreover, the inconsistency of naming is rather frustrating. What is defined as WPLANG is accessed via get_bloginfo(‘language’); Sometimes words are abbreviated and other times they aren’t.

