is there a file where wordpress defines it's $GLOBALS?
i'm just curious as to what wordpress uses it for and for what purpose.
That's all!
|
is there a file where wordpress defines it's $GLOBALS? i'm just curious as to what wordpress uses it for and for what purpose. That's all!
| |||
|
feedback
|
|
I'm not sure if all of these are WordPress globals, but i did a quick grep type search of the WordPress files and tried to extract all the globals i could.. This is a list i compiled for you, that may not be perfect, but should *hopefully* represent alot of the
If you wanted to get a better idea of everything inside the global array you could run something like the following to get a print out, because the above approach was obviously flawed(globals are defined in more than one way).
Which should give you a more comprehensive list of variables in the global scope.. Hope that's helpful.. :) | |||||||||
feedback
|
|
Unfortunately, no. Globals definitions are scattered throught the codebase. There's no documentation for most of them, either. | |||||||
feedback
|