-
Notifications
You must be signed in to change notification settings - Fork 0
/
telelog.php
55 lines (45 loc) · 1.18 KB
/
telelog.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
50
51
52
53
54
55
<?php
/**
* @package Telelog
*/
/**
* Plugin Name: TeleLog
* Plugin URI: https://github.com/mahdyar/telelog
* Description: Keep track of everything happening on your WordPress in Telegram.
* Version: 1.0.3
* Author: Mahdyar Hasanpour
* Author URI: https://mahdyar.me
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: telelog
*/
// If this file is called directly, abort!
defined('ABSPATH') or die('-1');
// Require once the Composer autoloader
if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
require_once dirname(__FILE__) . '/vendor/autoload.php';
}
use Telelog\Inc\Base\Activate;
use Telelog\Inc\Base\Deactivate;
/**
* The code that runs during plugin activation
*/
function activate_telelog()
{
Activate::activate();
}
/**
* The code that runs during plugin deactivation
*/
function deactivate_telelog()
{
Deactivate::deactivate();
}
register_activation_hook(__FILE__, 'activate_telelog');
register_deactivation_hook(__FILE__, 'deactivate_telelog');
/**
* Initialize all the core classes of the plugin
*/
if (class_exists('Telelog\\Inc\\Init')) {
Telelog\Inc\Init::register_services();
}