PluginProbe
CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce / 4.5.6
CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce v4.5.6
4.6.0 4.5.8-beta-1 4.5.9 4.5.8 4.5.7 trunk 3.10.0 3.6.0 3.6.1 3.7.1 3.7.2 3.8.1 3.9.0 4.1.0 4.1.1 4.1.2 4.1.3 4.2.0 4.2.1 4.2.2 4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 All 44 releases
parcelpanel / parcelpanel.php

parcelpanel.php in CWILL (Formerly ParcelPanel) – Shipment Tracking, Tracking & Order Tracking for WooCommerce 4.5.6, at parcelpanel.php

55 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 /**
4 * Plugin Name: ParcelWILL Order Tracking for WooCommerce
5 * Plugin URI: https://docs.parcelpanel.com/woocommerce
6 * Description: The best order tracking plugin specially designed for WooCommerce, driving customer loyalty and more sales by providing the best post-purchase experience.
7 * Version: 4.5.6
8 * Author: ParcelWILL
9 * Author URI: https://www.parcelpanel.com
10 * Developer: ParcelWILL
11 * Developer URI: https://www.parcelpanel.com
12 * Text Domain: parcelpanel
13 * Domain Path: /l10n/languages/
14 * License: GPL-2.0
15 * Requires PHP: 7.2
16 * Requires at least: 5.8
17 * WC requires at least: 4.4.0
18 * WC tested up to: 10.4
19 *
20 * @copyright 2018-2026 ParcelWILL
21 */
22
23 define('ParcelPanel\VERSION', '4.5.6');
24 define('ParcelPanel\DB_VERSION', '2.9.0');
25
26 define('ParcelPanel\PLUGIN_FILE', __FILE__);
27 define('ParcelPanel\PLUGIN_PATH', untrailingslashit(plugin_dir_path(__FILE__)));
28
29 defined('ParcelPanel\DEBUG') || define('ParcelPanel\DEBUG', false);
30
31 if ( is_multisite() ) {
32 // In a multisite environment, check the activated plugins for the current site
33 $active_plugins = get_site_option('active_sitewide_plugins'); // Get the global activation plugin
34 $is_woocommerce_active = isset($active_plugins['woocommerce/woocommerce.php']);
35 } else {
36 // In a single-site environment, check the currently activated plugins
37 $active_plugins = apply_filters('active_plugins', get_option('active_plugins'));
38 $is_woocommerce_active = in_array('woocommerce/woocommerce.php', $active_plugins);
39 }
40
41 // Check if WooCommerce is activated
42 if ($is_woocommerce_active) {
43
44 include __DIR__ . '/vendor/autoload.php';
45
46 ParcelPanel\ParcelPanel::instance();
47 }
48
49 // compatible with HPOS
50 add_action('before_woocommerce_init', function () {
51 if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
52 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
53 }
54 });
55