예제 #1
0
파일: init.php 프로젝트: shwetadubey/upfit
 /**
  * Unique access to instance of YITH_Vendors class
  *
  * @return YITH_Vendors|YITH_Vendors_Premium
  * @since 1.0.0
  */
 function YITH_Vendors()
 {
     // Load required classes and functions
     require_once YITH_WPV_PATH . 'includes/class.yith-vendors.php';
     if (defined('YITH_WPV_PREMIUM') && file_exists(YITH_WPV_PATH . 'includes/class.yith-vendors-premium.php')) {
         require_once YITH_WPV_PATH . 'includes/class.yith-vendors-premium.php';
         return YITH_Vendors_Premium::instance();
     }
     return YITH_Vendors::instance();
 }
 /**
  * Main plugin Instance
  *
  * @return YITH_Vendors Main instance
  * @author Andrea Grillo <*****@*****.**>
  */
 public static function instance()
 {
     if (is_null(self::$_instance)) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }