/** * Get (and instantiate, if necessary) the instance of the class * @static * @return Shared_Sidebars */ public static function get_instance() { if (!is_a(self::$instance, __CLASS__)) { self::$instance = new self(); } return self::$instance; }
function tribe_widget_factory_load() { require_once 'Tribe_WP_Widget_Factory.php'; $GLOBALS['wp_widget_factory'] = Tribe_WP_Widget_Factory::get_instance(); }