Best way to have glabal variables
-
I find it a bit annoying that if I want a variable from the header to be accessed from another part of the template (e.g. sidebar) that the variable has to be declared as global in both locations. I am integrating another script into wordpress and I have 10s of such variables.
Isn’t there a better way to do this?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Best way to have glabal variables’ is closed to new replies.