-
Notifications
You must be signed in to change notification settings - Fork 1
/
1984-connector-for-dk-and-woocommerce.php
49 lines (41 loc) · 1.24 KB
/
1984-connector-for-dk-and-woocommerce.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
47
48
49
<?php
/**
* Plugin Name: 1984 Connector for DK and WooCommerce
* Plugin URI: https://github.com/1984hosting/1984-dk-woo
* Description: Sync your WooCommerce store with DK, including prices, inventory status and generate invoices for customers on checkout.
* Version: 0.4.5.2
* Requires at least: 6.1.5
* Requires PHP: 8.0
* Author: 1984 Hosting
* Author URI: https://1984.hosting
* License: GPL-3.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain: 1984-dk-woo
* Requires Plugins: woocommerce
*/
declare(strict_types = 1);
namespace NineteenEightyFour\NineteenEightyWoo;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
require plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
new Hooks\Admin();
new Cron\Schedule();
new Rest\Settings();
new Rest\OrderDKInvoice();
new Rest\OrderInvoiceNumber();
new Rest\OrderInvoicePdf();
new Hooks\KennitalaField();
new Hooks\RegisterPostMeta();
new Hooks\WooMetaboxes();
new Hooks\WooOrderStatusChanges();
new Hooks\WooProductVariations();
new Hooks\WooUpdateProduct();
register_activation_hook(
__FILE__,
'NineteenEightyFour\NineteenEightyWoo\Cron\Schedule::activate'
);
register_deactivation_hook(
__FILE__,
'NineteenEightyFour\NineteenEightyWoo\Cron\Schedule::deactivate'
);