-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhexreport.php
46 lines (39 loc) · 1.15 KB
/
hexreport.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @package hexreport
*
* Plugin Name: HexReport
* Plugin URI: https://wordpress.org/plugins/hexreport
* Description: Get extensive report of your WooCommerce store.
* Version: 1.0.0
* Author: WpHex
* Requires at least: 5.4
* Tested up to: 6.4.2
* Requires PHP: 7.1
* WC requires at least: 6.0
* WC tested up to: 8.5.1
* Author URI: https://wphex.com/
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: hexreport
* Domain Path: /languages
*/
if ( ! defined( 'ABSPATH' ) ) die();
use Automattic\WooCommerce\Utilities\FeaturesUtil;
use HexReport\App\Core\Core;
define( 'HEXREPORT_FILE', __FILE__ );
require_once __DIR__ . '/configs/bootstrap.php';
if ( file_exists( HEXREPORT_DIR_PATH . '/vendor/autoload.php' ) ) {
require_once HEXREPORT_DIR_PATH . '/vendor/autoload.php';
}
/**
* Plugin compatibility declaration with WooCommerce HPOS - High Performance Order Storage
*
* @return void
*/
add_action( 'before_woocommerce_init', function() {
if ( class_exists( FeaturesUtil::class ) ) {
FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
} );
Core::getInstance();