Timeline for Theming global variables - initializing in index.php but using in header.pho
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 11, 2017 at 19:39 | vote | accept | PKHunter | ||
Feb 11, 2017 at 6:21 | answer | added | David Lee | timeline score: 1 | |
Feb 11, 2017 at 3:58 | comment | added | PKHunter | I can declare them as global in functions.php, but I am not planning to set their value in functions.php. The setting of these values is done inside index.php, and then when get_header is called inside index.php much further down, I want the value to be used inside header.php. I tried setting a global function as in the answer below by JVD, but that does NOT work. | |
Feb 9, 2017 at 23:11 | answer | added | JVD | timeline score: 1 | |
Feb 9, 2017 at 22:43 | comment | added | David Lee | black magic? you can just declare the var in functions.php and thats it | |
Feb 9, 2017 at 22:21 | history | asked | PKHunter | CC BY-SA 3.0 |