Use of global variables within plugin [closed]
There’re easier ways than this. As @Wyck already stated that using globals is bad idea, here’s a short explanation and how to: Why globals are bad: 1) Everyone can access them everywhere. First this sounds nice, but you can as well do the following: // Your code: default value global $foo; $foo = ‘bar’; // … Read more