-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclassbyte.php
More file actions
38 lines (30 loc) · 1.17 KB
/
classbyte.php
File metadata and controls
38 lines (30 loc) · 1.17 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
<?php
/**
* Plugin Name: ClassByte
* Plugin URI: http://dev.classbyte.com/
* Description: ClassByte plugin is the main central place to connect Wordpress and your Custom ClassByte integrated application together.
* Version: 1.0
* Author: Webxity Technologies
* Author URI: http://webxity.com/
* License: GPL2
*/
namespace CB;
// Directory
define('CB_DIR', plugin_dir_path(__FILE__));
define('CB_VIEWS', trailingslashit(CB_DIR . 'views'));
define('CB_TEMPLATES', trailingslashit(CB_DIR . 'cb_templates'));
// URLS
define('CB_URL', trailingslashit(plugins_url('', __FILE__)));
define('ASSETS_URL', trailingslashit(CB_URL . 'assets'));
// Cookies name
define('CB_COOKIE_NAME', '__cbapi');
// Endpoints
define('CB_ENDPOINT_PAYMENT', 'payment');
define('CB_ENDPOINT_REGISTER', 'register');
include_once CB_DIR . 'autoload.php';
include_once CB_DIR . 'functions.php';
include_once CB_DIR . 'hooks.php';
$cb = new ClassByte();
register_activation_hook(__FILE__, array(__NAMESPACE__ . '\ClassByte', 'activation'));
register_deactivation_hook(__FILE__, array(__NAMESPACE__ . '\ClassByte', 'deactivation'));
register_uninstall_hook(__FILE__, array(__NAMESPACE__ . '\ClassByte', 'uninstall' ) );