[wp-hackers] Theme global variable/constant...

Micky Hulse mickyhulse.lists at gmail.com
Fri Aug 10 04:15:15 UTC 2012


Hello,

Silly question: What would be the best way to setup a global theme
variable and/or constant?

I'm building a theme, and I'd like to setup a few vars/consts that my
theme templates can access.

Would the theme's functions.php file be the best spot to set/define these?

Sorry if stupid question.

M


More information about the wp-hackers mailing list