Custom plugin: Trying to show saved data on frontend
Save yourself a headache and make a class. The static variable can be accessed like a global once it’s loaded. Just be sure the class exists before you try to use it! if ( ! class_exists( ‘WPSE_20150123_Plugin’ ) ) { class WPSE_20150123_Plugin { // our variable that will be set and read back later public … Read more