PluginProbe
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments / 1.1.6
SureCart – Ecommerce Made Easy For Selling Physical Products, Digital Downloads, Subscriptions, Donations, & Payments v1.1.6
4.7.2 4.7.1 4.7.0 4.6.6 4.6.5 4.6.4 4.6.3 4.6.2 4.6.1 4.6.0 4.5.1 4.5.0 4.4.2 4.4.1 4.4.0 4.3.3 4.3.2 4.3.1 4.3.0 4.2.3 4.2.2 4.2.1 1.0.3 1.0.4 1.0.5 All 281 releases
surecart / surecart.php
surecart.php
48 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: SureCart
4 * Plugin URI: https://surecart.com/
5 * Description: A simple yet powerful headless e-commerce platform designed to grow your business with effortlessly selling online.
6 * Version: 1.1.6
7 * Requires at least: 5.9
8 * Requires PHP: 7.4
9 * Author: SureCart
10 * Author URI: https://surecart.com
11 * License: GPL-2.0-only
12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
13 * Text Domain: surecart
14 * Domain Path: /languages
15 *
16 * YOU SHOULD NORMALLY NOT NEED TO ADD ANYTHING HERE - any custom functionality unrelated
17 * to bootstrapping the theme should go into a service provider or a separate helper file
18 * (refer to the directory structure in README.md).
19 *
20 * @package SureCart
21 */
22
23 if ( ! defined( 'ABSPATH' ) ) {
24 exit;
25 }
26
27 define( 'SURECART_PLUGIN_FILE', __FILE__ );
28
29 // define host url.
30 if ( ! defined( 'SURECART_APP_URL' ) ) {
31 define( 'SURECART_APP_URL', 'https://api.surecart.com' );
32 }
33
34 // Load composer dependencies.
35 if ( file_exists( __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php' ) ) {
36 require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
37 }
38
39 // Load helpers.
40 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'SureCart.php';
41 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'helpers.php';
42
43 // Bootstrap plugin after all dependencies and helpers are loaded.
44 \SureCart::make()->bootstrap( require __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'config.php' );
45
46 // Register hooks.
47 require_once __DIR__ . DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'hooks.php';
48