/** * Main Expert_Finder_Shortcode Instance * * Insures that only one instance of Expert_Finder_Shortcode exists in memory at * any one time. Also prevents needing to define globals all over the place. * * @since Expert_Finder_Shortcode (1.0.0) * * @staticvar array $instance * * @return Expert_Finder_Shortcode */ public static function instance() { if (!isset(self::$instance)) { self::$instance = new Expert_Finder_Shortcode(); self::$instance->setup_shortcodes(); } return self::$instance; }
/** * Component global variables * * @since Expert_Finder (1.0.0) * @access private * */ private function setup_globals() { Expert_Finder_Shortcode::instance(); Expert_Finder_Settings::instance(); }