Introduction
WordPress-specific global variables are used throughout WordPress code for various reasons. Almost all data that WordPress generates can be found in a global variable.
Note that it’s best to use the appropriate API functions when available, instead of modifying globals directly.
To access a global variable in your code, you first need to globalize the variable with global $variable;
