-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager.php
54 lines (51 loc) · 1.8 KB
/
manager.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
<?php
/**
* PSR-4 autoloading
*/
spl_autoload_register(
function( $class ) {
// Project-specific namespace prefix.
$prefix = 'Distributor\\';
// Base directory for the namespace prefix.
$base_dir = __DIR__ . '/includes/classes/';
// Does the class use the namespace prefix?
$len = strlen( $prefix );
if ( strncmp( $prefix, $class, $len ) !== 0 ) {
return;
}
$relative_class = substr( $class, $len );
$file = $base_dir . str_replace( '\\', '/', $relative_class ) . '.php';
// If the file exists, require it.
if ( file_exists( $file ) ) {
require $file;
}
}
);
/* Require plug-in files */
require_once __DIR__ . '/includes/external-connections-logger.php';
require_once __DIR__ . '/includes/integrations/status.php';
require_once __DIR__ . '/includes/check-permissions.php';
require_once __DIR__ . '/includes/integrations/waves.php';
require_once __DIR__ . '/includes/integrations/groups-taxonomy.php';
require_once __DIR__ . '/includes/integrations/clone-fix.php';
require_once __DIR__ . '/includes/integrations/woocommerce.php';
require_once __DIR__ . '/includes/integrations/acf.php';
require_once __DIR__ . '/includes/integrations/members.php';
require_once __DIR__ . '/includes/integrations/blocks.php';
require_once __DIR__ . '/includes/installer.php';
require_once __DIR__ . '/includes/content-receiver.php';
require_once __DIR__ . '/includes/hooks.php';
/* Call the setup functions */
\Distributor\ConnectionGroups\setup();
\Distributor\Logger\setup();
\Distributor\CloneFix\setup();
\Distributor\Status\setup();
\Distributor\Permissions\setup();
\Distributor\Woocommerce\setup();
\Distributor\Acf\setup();
\Distributor\Waves\setup();
\Distributor\Members\setup();
\Distributor\Installer\setup();
\Distributor\ContentReceiver\setup();
\Distributor\Blocks\setup();
\Distributor\Hooks\setup();