-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshopspark.php
More file actions
executable file
·51 lines (46 loc) · 1.77 KB
/
shopspark.php
File metadata and controls
executable file
·51 lines (46 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* Plugin Name: ShopSpark
* Plugin URI: https://www.shopspark.com
* Description: A Plugin to enhance your Woocommerce Shop Experience, Add multiple much needed features to your website.
* Version: 1.0.0
* Author: ShalikTheme
* Author URI: https://www.shaliktheme.com
* Author URI: Author URL
* Text Domain: shopspark
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*
* Requires at least: 5.4
* Requires PHP: 7.0
* Requires Plugins: Woocommerce
*
* @package ShopSpark
* @author ShalikTheme
* Author URI: https://www.shaliktheme.com
* @copyright 2025 ShalikTheme
* @license GPL-2.0+
*
* @wordpress-plugin
*
* Prefix: ShopSpark
*/
defined( 'ABSPATH' ) || die( 'No script kiddies please!' );
define( 'SHOP_SPARK_VERSION', WP_DEBUG ? time() : '1.0.0' );
define( 'SHOP_SPARK_PLUGIN', __FILE__ );
define( 'SHOP_SPARK_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'SHOP_SPARK_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'SHOP_SPARK_PLUGIN_ASSETS_URL', SHOP_SPARK_PLUGIN_URL . 'assets/' );
define( 'SHOP_SPARK_PLUGIN_ADMIN_PATH', SHOP_SPARK_PLUGIN_PATH . 'includes/Admin/' );
define( 'SHOP_SPARK_PLUGIN_INLUCDES_PATH', SHOP_SPARK_PLUGIN_PATH . 'includes/' );
define( 'SHOP_SPARK_PLUGIN_TEMPLATE_PATH', SHOP_SPARK_PLUGIN_PATH . 'Templates/' );
define( 'SHOP_SPARK_PLUGIN_ADMIN_TEMPLATE_PATH', SHOP_SPARK_PLUGIN_PATH . 'Templates/Admin/' );
define( 'SHOP_SPARK_PLUGIN_FRONTEND_TEMPLATE_PATH', SHOP_SPARK_PLUGIN_PATH . 'Templates/Frontend/' );
require_once plugin_dir_path(__FILE__) . 'vendor/autoload.php';
use ShopSpark\Core\Plugin;
function shopspark_bootstrap() {
$plugin = new Plugin(__FILE__);
$plugin->init();
}
add_action('plugins_loaded', 'shopspark_bootstrap');