-
Notifications
You must be signed in to change notification settings - Fork 27
/
seriously-simple-stats.php
55 lines (46 loc) · 1.19 KB
/
seriously-simple-stats.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
/*
* Plugin Name: Seriously Simple Stats
* Version: 1.7.0
* Plugin URI: https://wordpress.org/plugins/seriously-simple-stats
* Description: Integrated analytics and stats tracking for Seriously Simple Podcasting.
* Author: Castos
* Author URI: https://www.castos.com/
* Requires at least: 5.3
* Tested up to: 6.6
*
* Text Domain: seriously-simple-stats
* Domain Path: /languages
*
* @package WordPress
* @author Hugh Lashbrooke
* @since 1.0.0
*
* @author Castos
* @since 1.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use SeriouslySimpleStats\Classes\Stats;
define( 'SSP_STATS_VERSION', '1.7.0' );
define( 'SSP_STATS_DIR_PATH', plugin_dir_path( __FILE__ ) );
require_once SSP_STATS_DIR_PATH . 'vendor/autoload.php';
if ( ! function_exists( 'is_ssp_active' ) ) {
require_once SSP_STATS_DIR_PATH . 'ssp-includes/ssp-functions.php';
}
if ( ! defined( 'SSP_CPT_PODCAST' ) ) {
define( 'SSP_CPT_PODCAST', 'podcast' );
}
if ( is_ssp_active( '1.13.1' ) ) {
/**
* Returns the main instance of SSP_Stats to prevent the need to use globals.
*
* @return Stats
* @since 1.0.0
*/
function SSP_Stats() {
return Stats::instance( __FILE__, SSP_STATS_VERSION );
}
SSP_Stats();
}