| 1 |
<?php |
| 2 |
/** |
| 3 |
* Google Tag Manager Kit. |
| 4 |
* |
| 5 |
* Plugin Name: GTM Kit |
| 6 |
* Version: 1.0 |
| 7 |
* Plugin URI: https://gtmkit.com/ |
| 8 |
* Description: Google Tag Manager implementation focusing on flexibility and pagespeed. |
| 9 |
* Author: TLA Media |
| 10 |
* Author URI: https://www.tlamedia.dk/ |
| 11 |
* Text Domain: gtmkit |
| 12 |
* Domain Path: /languages/ |
| 13 |
* License: GPL v3 |
| 14 |
* Requires at least: 6.0 |
| 15 |
* Requires PHP: 7.2 |
| 16 |
* |
| 17 |
* WC requires at least: 6.6 |
| 18 |
* WC tested up to: 6.8 |
| 19 |
* |
| 20 |
* @copyright Copyright (C) 2022, TLA Media ApS |
| 21 |
*/ |
| 22 |
|
| 23 |
|
| 24 |
if ( ! function_exists( 'add_filter' ) ) { |
| 25 |
header( 'Status: 403 Forbidden' ); |
| 26 |
header( 'HTTP/1.1 403 Forbidden' ); |
| 27 |
exit(); |
| 28 |
} |
| 29 |
|
| 30 |
define( 'GTMKIT_VERSION', '1.0' ); |
| 31 |
|
| 32 |
if ( ! defined( 'GTMKIT_FILE' ) ) { |
| 33 |
define( 'GTMKIT_FILE', __FILE__ ); |
| 34 |
} |
| 35 |
|
| 36 |
if ( ! defined( 'GTMKIT_PATH' ) ) { |
| 37 |
define( 'GTMKIT_PATH', plugin_dir_path( GTMKIT_FILE ) ); |
| 38 |
} |
| 39 |
|
| 40 |
if ( ! defined( 'GTMKIT_BASENAME' ) ) { |
| 41 |
define( 'GTMKIT_BASENAME', plugin_basename( GTMKIT_FILE ) ); |
| 42 |
} |
| 43 |
|
| 44 |
if ( ! defined( 'GTMKIT_URL' ) ) { |
| 45 |
define( 'GTMKIT_URL', plugin_dir_url( __FILE__ ) ); |
| 46 |
} |
| 47 |
|
| 48 |
if ( ! defined( 'GTMKIT_ADMIN_SLUG' ) ) { |
| 49 |
define( 'GTMKIT_ADMIN_SLUG', 'gtmkit_' ); |
| 50 |
} |
| 51 |
|
| 52 |
// Load the WordPress Google Tag Manager Kit plugin. |
| 53 |
require_once dirname( GTMKIT_FILE ) . '/inc/main.php'; |
| 54 |
|