Define it in functions.php
, which is loaded on every request.
However, there are far better options than a global variable:
- a function
- a template part if it’s a template you’re defining
- filters
Define it in functions.php
, which is loaded on every request.
However, there are far better options than a global variable: