independent-analytics
Last commit date
IAWP
2 years ago
dist
2 years ago
freemius
2 years ago
img
2 years ago
languages
2 years ago
sql
2 years ago
vendor
2 years ago
views
2 years ago
iawp-bootstrap.php
2 years ago
iawp.php
2 years ago
readme.txt
2 years ago
iawp.php
69 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Plugin Name: Independent Analytics |
| 5 | * Plugin URI: https://independentwp.com/ |
| 6 | * Description: User-friendly website analytics built for WordPress |
| 7 | * Version: 1.30.0 |
| 8 | * Requires at least: 5.9 |
| 9 | * Tested up to: 6.3.1 |
| 10 | * Requires PHP: 7.3.33 |
| 11 | * Author: Independent Analytics |
| 12 | * Author URI: https://independentwp.com/ |
| 13 | * License: GPL v2 or later |
| 14 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 15 | * Text Domain: independent-analytics |
| 16 | * Domain Path: /languages |
| 17 | */ |
| 18 | if ( !defined( 'ABSPATH' ) ) { |
| 19 | exit; |
| 20 | } |
| 21 | |
| 22 | if ( function_exists( 'IAWP_FS' ) ) { |
| 23 | IAWP_FS()->set_basename( false, __FILE__ ); |
| 24 | } else { |
| 25 | // DO NOT REMOVE THIS IF, IT IS ESSENTIAL FOR THE `function_exists` CALL ABOVE TO PROPERLY WORK. |
| 26 | |
| 27 | if ( !function_exists( 'IAWP_FS' ) ) { |
| 28 | // Create a helper function for easy SDK access. |
| 29 | function IAWP_FS() |
| 30 | { |
| 31 | global $ia_fs ; |
| 32 | |
| 33 | if ( !isset( $ia_fs ) ) { |
| 34 | // Activate multisite network integration. |
| 35 | if ( !defined( 'WP_FS__PRODUCT_9944_MULTISITE' ) ) { |
| 36 | define( 'WP_FS__PRODUCT_9944_MULTISITE', true ); |
| 37 | } |
| 38 | // Include Freemius SDK. |
| 39 | require_once dirname( __FILE__ ) . '/freemius/start.php'; |
| 40 | $ia_fs = fs_dynamic_init( [ |
| 41 | 'id' => '9944', |
| 42 | 'slug' => 'independent-analytics', |
| 43 | 'premium_slug' => 'independent-analytics-pro', |
| 44 | 'type' => 'plugin', |
| 45 | 'public_key' => 'pk_c228acaa28759b55d58766b1076d4', |
| 46 | 'is_premium' => false, |
| 47 | 'premium_suffix' => 'Pro', |
| 48 | 'has_addons' => false, |
| 49 | 'has_paid_plans' => true, |
| 50 | 'menu' => [ |
| 51 | 'slug' => 'independent-analytics', |
| 52 | ], |
| 53 | 'is_live' => true, |
| 54 | ] ); |
| 55 | } |
| 56 | |
| 57 | return $ia_fs; |
| 58 | } |
| 59 | |
| 60 | // Init Freemius. |
| 61 | IAWP_FS(); |
| 62 | // Signal that SDK was initiated. |
| 63 | do_action( 'ia_fs_loaded' ); |
| 64 | } |
| 65 | |
| 66 | // ... Your plugin's main file logic ... |
| 67 | require_once rtrim( plugin_dir_path( __FILE__ ), DIRECTORY_SEPARATOR ) . '/iawp-bootstrap.php'; |
| 68 | } |
| 69 |