forked from dans-art/add-customer-for-woocommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-customer-for-woocommerce.php
49 lines (44 loc) · 1.2 KB
/
add-customer-for-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: Add Customer for WooCommerce
* Description: Allows you to add a customer when a new order is created at the orders page.
* Plugin URI: https://dev.dans-art.ch/blog/wordpress/add-customer-for-woocommerce/
* Contributors: dansart
* Contributors URL: http://dev.dans-art.ch
* Tags: woocommerce, customer, tools, helper
* Version: 1.4
* Stable tag: 1.4
*
* Requires at least: 5.4.0
* Tested up to: 5.9
*
* WC requires at least: 4.7.0
* WC tested up to: 6.1.1
*
* Requires PHP: 7.4
*
* Domain Path: /languages
* Text Domain: wac
*
* Author: Dan's Art
* Author URI: https://dev.dans-art.ch
* Donate link: https://paypal.me/dansart13
* License: GPLv3 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*
*/
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
}
/**
* Load the classes
*/
require_once('include/tools/helper.php');
require_once('include/classes/wac.php');
require_once('include/classes/wac-admin.php');
require_once('include/classes/wac-backend.php');
//Make sure all other Plugins are loaded, before running this.
add_action('plugins_loaded', function () {
$wac = new woo_add_customer();
$wac->wac_admin_init();
});