‘global’ not working when passing variable from plugin file to template
Your code has the correct syntax, but for globals to work they have to be run in the same PHP execution (i.e. the same page load), and you’ll need to set that global before you read it. Globals are completely separate to each page load. You either have a case where the code in the … Read more