2012-04-29, 05:34 PM
I've set an array of values at the very start of my plugin file that I'd like to use in the plugin functions, however I can't use them. I'm definitely sure they've been set.
Why? pluginname_do_something() has been added to a hook and that's how it's called, so something to with that?
$var = array('test' => 'blah');
function pluginname_do_something() {
global $var;
echo $var['test'];
}
Why? pluginname_do_something() has been added to a hook and that's how it's called, so something to with that?