forked from wp-statistics/wp-statistics
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-statistics.php
More file actions
38 lines (32 loc) · 1.13 KB
/
Copy pathwp-statistics.php
File metadata and controls
38 lines (32 loc) · 1.13 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: WP Statistics
* Plugin URI: https://wp-statistics.com/
* GitHub Plugin URI: https://github.com/wp-statistics/wp-statistics
* Description: This plugin gives you the complete information on your website's visitors.
* Version: 14.6.3
* Author: VeronaLabs
* Author URI: https://veronalabs.com/
* Text Domain: wp-statistics
* Domain Path: /languages
* License: GPL-2.0+
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
# Exit if accessed directly
if (!defined('ABSPATH')) exit;
# Load Plugin Defines
require_once __DIR__ . '/includes/defines.php';
# Include some empty class to make sure they are existed while upgrading plugin.
require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-updates.php';
require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics-welcome.php';
# Load Plugin
if (!class_exists('WP_Statistics')) {
require_once WP_STATISTICS_DIR . 'includes/class-wp-statistics.php';
}
# Returns the main instance of WP Statistics.
function WP_Statistics()
{
return WP_Statistics::instance();
}
# Global for backwards compatibility.
$GLOBALS['WP_Statistics'] = WP_Statistics();