-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdigipass.php
executable file
·49 lines (42 loc) · 1.52 KB
/
digipass.php
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
<?php
/**
* @wordpress-plugin
* Plugin Name: DigiPass
* Plugin URI: https://github.com/Labs64/digipass
* Description: The best way for publishers and bloggers to monetize their content.
* Author: Labs64
* Author URI: http://www.labs64.com
* Version: 0.4.0
* Text Domain: digipass
* Domain Path: /languages
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Requires at least: 3.5.1
* Tested up to: 4.4.2
*
* @package DigiPass
* @author Labs64 <info@labs64.com>
* @license GPL-2.0+
* @link http://www.labs64.com
* @copyright 2015 Labs64
*/
// If this file is called directly, abort.
if (!defined('WPINC')) {
die;
}
define('DIGIPASS_DIR', plugin_dir_path(__FILE__));
//libraries
require_once(DIGIPASS_DIR . 'vendor/autoload.php');
// main
require_once(DIGIPASS_DIR . 'public/digipass-class-base.php');
require_once(DIGIPASS_DIR . 'public/digipass-class.php');
require_once(DIGIPASS_DIR . 'public/digipass-functions.php');
// Register hooks that are fired when the plugin is activated, deactivated, and uninstalled, respectively.
register_activation_hook(__FILE__, array('DigiPass', 'activate'));
register_deactivation_hook(__FILE__, array('DigiPass', 'deactivate'));
register_uninstall_hook(__FILE__, array('DigiPass', 'uninstall'));
add_action('plugins_loaded', array('DigiPass', 'get_instance'));
if (is_admin()) {
require_once(plugin_dir_path(__FILE__) . 'admin/digipass-class-admin.php');
add_action('plugins_loaded', array('DigiPass_Admin', 'get_instance'));
}