Answer the question
In order to leave comments, you need to log in
Variable set in function.php not visible in header.php?
Hello!
In function.php I set a variable $foo = 'foo';
In header.php I call it, var_dump($foo), but in response, an error: Warning: Undefined variable $foo
Why is this variable not visible in header.php?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question