Hmm...sorry, I guess I'm not sure if you're using a separate php file or not. I guess not or else you'd just put it in there. So the alternative is a plugin. You could just use the global_start hook since your code only defines things and doesn't do stuff on it's own. You'd normally want to find a place that only includes the code when you need it of course.
And hopefully there won't be any variable scope problems.
|