PluginProbe
Device Detector / 1.1.1
Device Detector v1.1.1
trunk 1.0.0 1.1.0 1.1.1 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 2.0.0 2.0.1 2.1.0 2.1.1 2.2.0 2.2.1 2.3.0 2.3.1 2.4.0 3.0.0 3.0.1 3.0.2 3.1.0 3.1.1 All 42 releases
device-detector / device-detector.php

device-detector.php in Device Detector 1.1.1, at device-detector.php

76 lines 1.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Main plugin file.
4 *
5 * @package Bootstrap
6 * @author Pierre Lannoy <https://pierre.lannoy.fr/>.
7 * @since 1.1.0
8 *
9 * @wordpress-plugin
10 * Plugin Name: Device Detector
11 * Plugin URI: https://github.com/Pierre-Lannoy/wp-device-detector
12 * Description: Full featured analytics reporting and management tool that detects all devices accessing your WordPress site.
13 * Version: 1.1.1
14 * Author: Pierre Lannoy
15 * Author URI: https://pierre.lannoy.fr
16 * License: GPLv3
17 * License URI: https://www.gnu.org/licenses/gpl-3.0.html
18 * Network: true
19 * Text Domain: device-detector
20 * Domain Path: /languages
21 */
22
23 // If this file is called directly, abort.
24 if ( ! defined( 'WPINC' ) ) {
25 die;
26 }
27
28 require_once __DIR__ . '/init.php';
29 require_once __DIR__ . '/includes/system/class-option.php';
30 require_once __DIR__ . '/includes/system/class-environment.php';
31 require_once __DIR__ . '/autoload.php';
32 require_once __DIR__ . '/includes/libraries/class-libraries.php';
33 require_once __DIR__ . '/includes/libraries/autoload.php';
34
35 /**
36 * The code that runs during plugin activation.
37 *
38 * @since 1.0.0
39 */
40 function podd_activate() {
41 PODeviceDetector\Plugin\Activator::activate();
42 }
43
44 /**
45 * The code that runs during plugin deactivation.
46 *
47 * @since 1.0.0
48 */
49 function podd_deactivate() {
50 PODeviceDetector\Plugin\Deactivator::deactivate();
51 }
52
53 /**
54 * The code that runs during plugin uninstallation.
55 *
56 * @since 1.0.0
57 */
58 function podd_uninstall() {
59 PODeviceDetector\Plugin\Uninstaller::uninstall();
60 }
61
62 /**
63 * Begins execution of the plugin.
64 *
65 * @since 1.0.0
66 */
67 function podd_run() {
68 $plugin = new PODeviceDetector\Plugin\Core();
69 $plugin->run();
70 }
71
72 register_activation_hook( __FILE__, 'podd_activate' );
73 register_deactivation_hook( __FILE__, 'podd_deactivate' );
74 register_uninstall_hook( __FILE__, 'podd_uninstall' );
75 podd_run();
76