-
Notifications
You must be signed in to change notification settings - Fork 0
/
woocommerce-freshbooks.php
35 lines (30 loc) · 1.06 KB
/
woocommerce-freshbooks.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
<?php
declare(strict_types=1);
defined('ABSPATH') || exit;
/**
* Plugin Name: FreshBooks Integration for WooCommerce
* Version: 1.1.8
* Author URI: https://beycanpress.com/
* Description: FreshBooks Integration for WooCommerce
* Author: BeycanPress LLC
* Plugin URI: https://github.com/BeycanPress/woocommerce-freshbooks
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: woocommerce-freshbooks
* Domain Path: /languages
* Tags: WooCommerce, FreshBooks, Integration
* Requires at least: 5.0
* Tested up to: 6.7.1
* Requires PHP: 8.1
*/
add_action('before_woocommerce_init', function (): void {
if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, true);
}
});
add_action('plugins_loaded', function (): void {
if (function_exists('WC')) {
require __DIR__ . '/vendor/autoload.php';
new \BeycanPress\WooCommerce\FreshBooks\Loader(__FILE__);
}
});