Is the php $GLOBALS associative array over written in WordPress with the WordPress $GLOBALS? I have a piece of code that uses $GLOBALS['myvariablename'] to access a global variable. It works in php, but stops working when I bring the code to a WordPress environment.
Is there a way to use $GLOBALS associative array? Or should I absolutely declare variables global before getting them in functions and using them?
I am trying to use the reddit API to fetch and display the popularity of my links on my wordpress blog. The global variables are for configuration information - like the reddit user name etc. I have documented my steps in my post here.