How Does One Create a Global Variable Repository

A ‘better’ way of storing variables for global use is to use add_option() to cache variables and get_option() for retrieving variables. This way everything stored in the database and you can access it anywhere.