-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpushe-webpush.php
More file actions
executable file
·51 lines (42 loc) · 1.09 KB
/
pushe-webpush.php
File metadata and controls
executable file
·51 lines (42 loc) · 1.09 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
/**
* @package PusheWebpush
*/
/*
* Plugin Name: Pushe Webpush
* Description: Official Pushe.co's webpush plugin for wordpress.
* version: 0.4.3
* Author: pushe.co
* Author URI: https://pushe.co
* License: GPL-3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
* Text Domain: pushe-webpush
* Domain Path: /languages
*/
defined('ABSPATH') or die('You cannot access this file!');
// Require once the Composer autoload
if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
require_once(dirname(__FILE__) . '/vendor/autoload.php');
}
/**
* Codes run during activation of the plugin
*/
function activate_pushe_webpush_plugin()
{
Inc\base\Activate::activate();
}
register_activation_hook(__FILE__, 'activate_pushe_webpush_plugin');
/**
* Codes run during deactivation of the plugin
*/
function deactivate_pushe_webpush_plugin()
{
Inc\base\Deactivate::deactivate();
}
register_deactivation_hook(__FILE__, 'deactivate_pushe_webpush_plugin');
/**
* Initialize all the core classes of the plugin
*/
if (class_exists('Inc\\Init')) {
Inc\Init::register_services();
}