forked from asdfdotdev/utm.codes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utm-dot-codes.php
49 lines (42 loc) · 1.43 KB
/
utm-dot-codes.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
<?php
/**
* Utm.codes - A plugin that makes building analytics friendly links quick and easy.
*
* @package UtmDotCodes
* @copyright 2018-2022 Chris Carlevato (https://asdf.dev)
* @license http://www.gnu.org/licenses/gpl-2.0.html
* @link https://utm.codes
*
* @wordpress-plugin
* Plugin Name: utm.codes
* Plugin URI: https://utm.codes
* Description: A plugin that makes building analytics friendly links quick and easy.
* Version: 1.8.2
* Author: Chris Carlevato
* Author URI: https://asdf.dev
* License: GPL v2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: utm-dot-codes
*/
/**
* Plugins shouldn't be called directly.
*/
if ( ! function_exists( 'add_action' ) ) {
die( '-1' );
}
define( 'UTMDC_VERSION', '1.8.2' );
define( 'UTMDC_MINIMUM_WP_VERSION', '4.7' );
define( 'UTMDC_MINIMUM_PHP_VERSION', '5.6' );
define( 'UTMDC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'UTMDC_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'UTMDC_PLUGIN_FILE', plugin_basename( __FILE__ ) );
$in_wp_admin = is_admin();
$running_tests = ( defined( 'UTMDC_IS_TEST' ) && UTMDC_IS_TEST );
$should_load = ( ! class_exists( 'UtmDotCodes' ) );
if ( ( $in_wp_admin || $running_tests ) && $should_load ) {
require_once UTMDC_PLUGIN_DIR . '/classes/class-utmdotcodes.php';
new UtmDotCodes();
// (De)Activation Hooks
require_once UTMDC_PLUGIN_DIR . '/classes/class-utmdotcodesactivation.php';
new UtmDotCodesActivation();
}