PluginProbe
Beehive Analytics – Google Analytics Dashboard / 3.4.6
Beehive Analytics – Google Analytics Dashboard v3.4.6
trunk 3.2.1 3.2.2 3.2.3 3.2.4 3.2.6 3.2.7 3.2.8 3.3.0 3.3.1 3.3.10 3.3.11 3.3.13 3.3.14 3.3.15 3.3.2 3.3.4 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.10 3.4.11 All 42 releases
beehive-analytics / beehive-analytics.php

beehive-analytics.php in Beehive Analytics – Google Analytics Dashboard 3.4.6, at beehive-analytics.php

80 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main plugin header.
4 *
5 * @package Beehive
6 *
7 * Plugin Name: Beehive Analytics
8 * Plugin URI: https://wordpress.org/plugins/beehive-analytics/
9 * Description: Enables Google Analytics for your site with statistics inside WordPress admin panel. Single and multi site compatible!
10 * Author: WPMU DEV
11 * Author URI: https://wpmudev.com
12 * Version: 3.4.6
13 * License: GNU General Public License (Version 2 - GPLv2)
14 * Text Domain: ga_trans
15 * Domain Path: /languages
16 *
17 *
18 * Beehive is free software: you can redistribute it and/or modify
19 * it under the terms of the GNU General Public License as published by
20 * the Free Software Foundation, either version 2 of the License, or
21 * any later version.
22 *
23 * Beehive is distributed in the hope that it will be useful,
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 * GNU General Public License for more details.
27 *
28 * You should have received a copy of the GNU General Public License
29 * along with Beehive. If not, see <http://www.gnu.org/licenses/>.
30 */
31
32 // If this file is called directly, abort.
33 defined( 'WPINC' ) || die;
34
35 // Flag to check if it's Pro or Free.
36 if ( ! defined( 'BEEHIVE_FREE' ) ) {
37 define( 'BEEHIVE_FREE', true );
38 }
39
40 // Define BEEHIVE_PLUGIN_FILE.
41 if ( ! defined( 'BEEHIVE_PLUGIN_FILE' ) ) {
42 define( 'BEEHIVE_PLUGIN_FILE', __FILE__ );
43 }
44
45 // Plugin version.
46 if ( ! defined( 'BEEHIVE_VERSION' ) ) {
47 define( 'BEEHIVE_VERSION', '3.4.6' );
48 }
49
50 // Auto load classes.
51 require_once plugin_dir_path( __FILE__ ) . '/core/utils/autoloader.php';
52
53 /**
54 * Run plugin activation hook to setup plugin.
55 *
56 * @since 3.2.0
57 */
58 register_activation_hook( __FILE__, array( \Beehive\Core\Controllers\Installer::instance(), 'activate' ) );
59
60 // Make sure beehive is not already defined.
61 if ( ! function_exists( 'beehive_analytics' ) ) {
62 /**
63 * Main instance of plugin.
64 *
65 * Returns the main instance of Beehive to prevent the need to use globals
66 * and to maintain a single copy of the plugin object.
67 * You can simply call beehive_analytics() to access the object.
68 *
69 * @since 1.0.0
70 *
71 * @return Beehive\Core\Beehive
72 */
73 function beehive_analytics() {
74 return Beehive\Core\Beehive::instance();
75 }
76 }
77
78 // Init the plugin and load the plugin instance for the first time.
79 add_action( 'plugins_loaded', 'beehive_analytics' );
80