/** * Main plugin Instance * * @return YITH_Multistep_Checkout Main instance * @author Andrea Grillo <*****@*****.**> */ public static function instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
/** * Unique access to instance of YITH_Vendors class * * @return YITH_Multistep_Checkout|YITH_Multistep_Checkout_Premium * @since 1.0.0 */ function YITH_Multistep_Checkout() { // Load required classes and functions require_once YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout.php'; if (defined('YITH_WCMS_PREMIUM') && file_exists(YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout-premium.php')) { require_once YITH_WCMS_PATH . 'includes/class.yith-multistep-checkout-premium.php'; return YITH_Multistep_Checkout_Premium::instance(); } return YITH_Multistep_Checkout::instance(); }