-
Notifications
You must be signed in to change notification settings - Fork 0
/
stats4wp.php
73 lines (61 loc) · 2.13 KB
/
stats4wp.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
Plugin Name: stats4wp
Plugin URI: https://ginkgos.net/plugin/stats4wp/
Description: Statistics For WorPress.
Version: 1.4.11
Requires at least: 5.2
Tested up to: 6.5.3
Requires PHP: 7.4
Author: Franck VANHOUCKE
Author URI: https://ginkgos.net/
Network: true
License: GPLv2 or later
Domain Path: /languages
Text Domain: stats4wp
Copyright 2020-2021 Franck VANHOUCKE
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
defined( 'ABSPATH' ) || die( 'Hey, what are you doing here? You silly human!' );
if ( file_exists( dirname( __FILE__ ) . '/vendor/autoload.php' ) ) {
include_once dirname( __FILE__ ) . '/vendor/autoload.php';
}
/**
* Plugin variable information
*/
define( 'STATS4WP_VERSION', '1.4.11' );
define( 'STATS4WP_NAME', 'stats4wp' );
define( 'STATS4WP_FILE', __FILE__ );
define( 'STATS4WP_PATH', plugin_dir_path( STATS4WP_FILE ) );
define( 'STATS4WP_URL', plugin_dir_url( STATS4WP_FILE ) );
define( 'STATS4WP_CHARTJS_VERSION', '4.2.1' );
define( 'STATS4WP_JVECTORMAP_VERSION', '2.0.5' );
/**
* The code that runs during plugin activation
*/
function stats4wp_activate_plugin( $network_wide ) {
STATS4WP\Core\Activate::activate( $network_wide );
}
register_activation_hook( STATS4WP_FILE, 'stats4wp_activate_plugin' );
/**
* The code that runs during plugin deactivation
*/
function stats4wp_deactivate_plugin() {
STATS4WP\Core\Deactivate::deactivate();
}
register_deactivation_hook( STATS4WP_FILE, 'stats4wp_deactivate_plugin' );
/**
* The code that run for Core executing
*/
if ( class_exists( 'STATS4WP\\Init' ) ) {
STATS4WP\Init::register_services();
}