-
Notifications
You must be signed in to change notification settings - Fork 7
/
plugin.php
68 lines (53 loc) · 2.68 KB
/
plugin.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
66
67
68
<?php
/*
Plugin Name: HM Content Import
Description: Developer Framework for Importing external data into WordPress during site migration
Version: 1.0
Author: Human Made
Author URI: http://hmn.md
License: GPL3
License URI: https://www.gnu.org/licenses/gpl-3.0.txt
Text-Domain: hmci
*/
namespace HMCI;
require_once( __DIR__ . '/inc/utils/namespace.php' );
require_once( __DIR__ . '/inc/classes/iterator/class-base-interface.php' );
require_once( __DIR__ . '/inc/classes/iterator/class-base.php' );
require_once( __DIR__ . '/inc/classes/iterator/db/class-base.php' );
require_once( __DIR__ . '/inc/classes/iterator/wp/class-base.php' );
require_once( __DIR__ . '/inc/classes/iterator/wp/class-posts.php' );
require_once( __DIR__ . '/inc/classes/iterator/files/class-base.php' );
require_once( __DIR__ . '/inc/classes/iterator/files/class-json.php' );
require_once( __DIR__ . '/inc/classes/iterator/files/class-xml.php' );
require_once( __DIR__ . '/inc/classes/iterator/file/class-base.php' );
require_once( __DIR__ . '/inc/classes/iterator/file/class-csv.php' );
require_once( __DIR__ . '/inc/classes/iterator/file/class-xml.php' );
require_once( __DIR__ . '/inc/classes/iterator/file/class-json.php' );
require_once( __DIR__ . '/inc/classes/inserter/class-base-interface.php' );
require_once( __DIR__ . '/inc/classes/inserter/class-base.php' );
require_once( __DIR__ . '/inc/classes/inserter/file/class-base.php' );
require_once( __DIR__ . '/inc/classes/inserter/file/class-csv.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-base-interface.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-base.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-post.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-user.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-guest-author.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-attachment.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-term.php' );
require_once( __DIR__ . '/inc/classes/inserter/wp/class-comment.php' );
require_once( __DIR__ . '/inc/classes/inserter/woocommerce/class-order.php' );
require_once( __DIR__ . '/inc/classes/inserter/woocommerce/class-order-item.php' );
require_once( __DIR__ . '/inc/classes/inserter/woocommerce/class-product.php' );
require_once( __DIR__ . '/inc/classes/class-master.php' );
/**
* Meta key where canonical IDs are stored.
*/
const CANONICAL_ID_LOOKUP_KEY = 'hmci_canonical_id';
// Only incude CLI command file if WP_CLI is defined
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require_once( __DIR__ . '/inc/classes/cli/class-hmci.php' );
}
// Initialise the master instance
add_action( 'init', function() {
Master::get_instance();
}, 1 );