WordPress Static Variables

Sometimes I want to setup some variables to be used across various scripts and I don’t want to have to pollute the global variables. We setup some functionality in house for creating variables we can use throughout our scripts in a site.

Now you can set and get any variable you want throughout your scripts.