-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpromotore-simple-analytics.php
52 lines (45 loc) · 1.2 KB
/
promotore-simple-analytics.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
<?php
/**
* Main file of plugin
*
* @package Simple Analytics
*/
/*
* Plugin Name: Simple Analytics
* Plugin URI: https://lucasbonomo.com/wordpress/
* Description: A simple Google Analytics (and Tab Manager) plugin for WordPress
* Version: 1.4.3
* Author: Lucas Bonomo
* Author URI: https://lucasbonomo.com/wordpress
* License: GPLv2 or later
* Text Domain: promotore-simple-analytics
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
require_once 'classes/class-simpleanalytics.php';
/**
* Activate plugin
*/
function activate_simple_analytics() {
require_once plugin_dir_path( __FILE__ ) . 'classes/class-simpleanalyticsactivator.php';
SimpleAnalyticsActivator::activate();
}
/**
* Deactivate plugin
*/
function deactivate_simple_analytics() {
require_once plugin_dir_path( __FILE__ ) . 'classes/class-simpleanalyticsdeactivator.php';
SimpleAnalyticsDeactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_simple_analytics' );
register_deactivation_hook( __FILE__, 'deactivate_simple_analytics' );
/**
* Activate plugin
*/
function simple_analytics_run() {
$plugin = new SimpleAnalytics();
}
simple_analytics_run();