-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.php
45 lines (40 loc) · 1.79 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
<?php
/**
* Plugin Name: Altis Analytics
* Description: Analytics layer for Altis powered by AWS Pinpoint.
* Version: 5.0.0-beta
* Author: Human Made Limited
* Author URI: https://humanmade.com/
*
* @package aws-analytics
*/
namespace Altis\Analytics;
const ROOT_DIR = __DIR__;
const ROOT_FILE = __FILE__;
// Check if this is installed as a self contained built version.
if ( file_exists( ROOT_DIR . '/vendor/autoload.php' ) ) {
require_once ROOT_DIR . '/vendor/autoload.php';
}
require_once __DIR__ . '/inc/namespace.php';
require_once __DIR__ . '/inc/api/namespace.php';
require_once __DIR__ . '/inc/api/class-filter.php';
require_once __DIR__ . '/inc/admin/namespace.php';
require_once __DIR__ . '/inc/utils/namespace.php';
require_once __DIR__ . '/inc/audiences/namespace.php';
require_once __DIR__ . '/inc/audiences/rest_api/class-posts-controller.php';
require_once __DIR__ . '/inc/audiences/rest_api/namespace.php';
require_once __DIR__ . '/inc/preview/namespace.php';
require_once __DIR__ . '/inc/dashboard/namespace.php';
require_once __DIR__ . '/inc/insights/namespace.php';
require_once __DIR__ . '/inc/blocks/namespace.php';
require_once __DIR__ . '/inc/blocks/rest_api/namespace.php';
require_once __DIR__ . '/inc/blocks/rest_api/class-posts-controller.php';
require_once __DIR__ . '/inc/broadcast/namespace.php';
require_once __DIR__ . '/inc/broadcast/class-posts-controller.php';
require_once __DIR__ . '/inc/experiments/namespace.php';
require_once __DIR__ . '/inc/experiments/titles/namespace.php';
require_once __DIR__ . '/inc/experiments/featured-images/namespace.php';
require_once __DIR__ . '/inc/export/class-endpoint.php';
require_once __DIR__ . '/inc/export/cron/namespace.php';
require_once __DIR__ . '/inc/export/namespace.php';
add_action( 'plugins_loaded', __NAMESPACE__ . '\\setup' );