Can you elaborate a bit on what you mean by the term “called from?” Using a php require?
If I’m not mistaken, don’t I also need to include a database connection for those variables to have meaning?
Sorry, I’m still kind of new to wordpress, how would I make use of this bit of php?