I'm trying to display a variable that is stored inside my functions.php file - for the sake of the question this variable is stored as
$test = 'test';. When i use
echo $test inside page.php, header.php or any other file the value is returned however when i try to do the same inside a widget (i'm using a plugin that allows execution of PHP inside a widget) nothing happens.
Any ideas as to how i could get around this?