This repository was archived by the owner on Jul 15, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctCommerce.php
More file actions
61 lines (42 loc) · 1.23 KB
/
ctCommerce.php
File metadata and controls
61 lines (42 loc) · 1.23 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
52
53
54
55
56
57
58
59
<?php
/*
Plugin Name:CT-Commerce
Plugin URI:
Description: Inituitive e-commerce plugin for WordPress
Version: 2.0.1
Author: Ujwol Bastakoti
Author URI:https://ujwolbastakoti.wordpress.com/
Text Domain: ct-commerce
License: GPLv2
*/
/*include plugin and widgets classes files*/
require_once 'classes/ctCommerceMain.php';
require_once 'widgets/ctCommerceCouponWidget.php';
require_once 'widgets/ctCommerceUserRegistrationLoginWidget.php';
require_once 'widgets/ctCommerceCategoryWidget.php';
require_once 'widgets/ctCommerceProductCart.php';
$ctcPlugADU = new ctCommercePluginADU();
/**
*
* This section will handles plugin activtion and deactivation and
* Uinstallation
*
*
*
*/
/*run when you register plugin */
register_activation_hook(__FILE__, array($ctcPlugADU, 'ctcActivate'));
/*run when plugin is deactivated*/
register_deactivation_hook(__FILE__, array($ctcPlugADU,'ctcDeactivate'));
/*runs when you remove plugin */
register_uninstall_hook(__FILE__,array('ctcPlugADU','ctcUninstall'));
/**
*
* This section handles other plugin functionalities
*
*/
new ctCommerceMain();
new ctCommerceCouponWidget();
new ctCommerceUserLoginRegistration();
new ctCommerceProductCartWidget();
new ctCommerceCategoryWidget();