S
S
Shimpanze2021-07-26 05:52:18
WordPress
Shimpanze, 2021-07-26 05:52:18

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 question

Ask a Question

731 491 924 answers to any question