-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwc-exporter-for-danea.php
executable file
·66 lines (57 loc) · 1.89 KB
/
wc-exporter-for-danea.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* Plugin Name: WC Exporter for Danea
* Plugin URI: https://www.ilghera.com/product/woocommerce-exporter-for-danea-premium/
* Description: If you've built your online store with WooCommerce and you're using Danea Easyfatt as management software, you definitely need WooCommerce Exporter for Danea!
* You'll be able to export suppliers, products, clients and orders.
* Version: 1.6.1
* Author: ilGhera
* Author URI: https://ilghera.com
* Text Domain: wc-exporter-for-danea
* Domain Path: /languages/
* Requires at least: 4.0
* Tested up to: 6.7
* WC tested up to: 9
*
* @package wc-exporter-for-danea
*/
defined( 'ABSPATH' ) || exit;
/**
* Plugin activation
*
* @return void
*/
function load_wc_exporter_for_danea() {
/* Constant variables */
define( 'WCEXD_DIR', plugin_dir_path( __FILE__ ) );
define( 'WCEXD_URI', plugin_dir_url( __FILE__ ) );
define( 'WCEXD_ADMIN', WCEXD_DIR . 'admin/' );
define( 'WCEXD_INCLUDES', WCEXD_DIR . 'includes/' );
define( 'WCEXD_VERSION', '1.6.1' );
require WCEXD_ADMIN . 'class-wcexd-admin.php';
require WCEXD_INCLUDES . 'class-wcexd-functions.php';
require WCEXD_INCLUDES . 'class-wcexd-users-download.php';
require WCEXD_INCLUDES . 'class-wcexd-products-download.php';
require WCEXD_INCLUDES . 'wc-checkout-fields/class-wcexd-checkout-fields.php';
}
add_action( 'plugins_loaded', 'load_wc_exporter_for_danea', 100 );
/**
* Load the plugin text-domain
*
* @return void
*/
function wcexd_load_textdomain() {
load_plugin_textdomain( 'wc-exporter-for-danea', false, basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'init', 'wcexd_load_textdomain' );
/**
* HPOS compatibility
*/
add_action(
'before_woocommerce_init',
function() {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
}
);