PluginProbe
Plausible Analytics / 2.6.1
Plausible Analytics v2.6.1
2.6.1 2.6.0 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 All 52 releases
plausible-analytics / plausible-analytics.php

plausible-analytics.php in Plausible Analytics 2.6.1, at plausible-analytics.php

31 lines 958 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Plausible Analytics
4 * Plugin URI: https://plausible.io
5 * Description: Simple and privacy-friendly alternative to Google Analytics.
6 * Author: Plausible.io
7 * Author URI: https://plausible.io
8 * Version: 2.6.1
9 * Text Domain: plausible-analytics
10 * Domain Path: /languages
11 */
12
13 namespace Plausible\Analytics\WP;
14
15 // Exit if accessed directly.
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit;
18 }
19
20 define( 'PLAUSIBLE_ANALYTICS_PLUGIN_FILE', __FILE__ );
21 define( 'PLAUSIBLE_ANALYTICS_PLUGIN_BASENAME', plugin_basename( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) );
22 define( 'PLAUSIBLE_ANALYTICS_PLUGIN_DIR', plugin_dir_path( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) );
23 define( 'PLAUSIBLE_ANALYTICS_PLUGIN_URL', plugin_dir_url( PLAUSIBLE_ANALYTICS_PLUGIN_FILE ) );
24
25 // Automatically loads files used throughout the plugin.
26 require_once PLAUSIBLE_ANALYTICS_PLUGIN_DIR . 'vendor/autoload.php';
27
28 // Initialize the plugin.
29 $plugin = new Plugin();
30 $plugin->register();
31