forked from tlamedia/gtm-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtm-kit.php
53 lines (45 loc) · 1.21 KB
/
gtm-kit.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
<?php
/**
* GTM Kit Plugin
*
* Plugin Name: GTM Kit
* Version: 2.2.1
* Plugin URI: https://gtmkit.com/
* Description: Google Tag Manager implementation focusing on flexibility and pagespeed.
* Author: GTM Kit
* Author URI: https://gtmkit.com/
* Text Domain: gtm-kit
* Domain Path: /languages/
* License: GPLv3
* Requires at least: 6.3
* Requires PHP: 7.4
*
* WC requires at least: 8.3
* WC tested up to: 9.3
*
* @package GTM Kit
* @copyright Copyright (C) 2021-2024, GTM Kit ApS
*/
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
const GTMKIT_VERSION = '2.2.1';
if ( ! defined( 'GTMKIT_FILE' ) ) {
define( 'GTMKIT_FILE', __FILE__ );
}
if ( ! defined( 'GTMKIT_PATH' ) ) {
define( 'GTMKIT_PATH', plugin_dir_path( GTMKIT_FILE ) );
}
if ( ! defined( 'GTMKIT_BASENAME' ) ) {
define( 'GTMKIT_BASENAME', plugin_basename( GTMKIT_FILE ) );
}
if ( ! defined( 'GTMKIT_URL' ) ) {
define( 'GTMKIT_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'GTMKIT_ADMIN_SLUG' ) ) {
define( 'GTMKIT_ADMIN_SLUG', 'gtmkit_' );
}
// Load the WordPress Google Tag Manager Kit plugin.
require_once dirname( GTMKIT_FILE ) . '/inc/main.php';