-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.php
executable file
·47 lines (40 loc) · 1.33 KB
/
init.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
<?php
/**
* Initialise the plugin
*/
namespace WP_Super_Network;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) )
{
die;
}
if ( ! defined( 'SUPER_NETWORK_DIR' ) )
{
define( 'SUPER_NETWORK_DIR', plugin_dir_path( __FILE__ ) );
}
if ( ! defined( 'SUPER_NETWORK_URL' ) )
{
define( 'SUPER_NETWORK_URL', plugin_dir_url( __FILE__ ) );
}
// Load libraries.
require_once SUPER_NETWORK_DIR . 'vendor/autoload.php';
// Load superclasses.
require_once SUPER_NETWORK_DIR . 'src/node.php';
// Load classes.
require_once SUPER_NETWORK_DIR . 'src/blog.php';
require_once SUPER_NETWORK_DIR . 'src/expression.php';
require_once SUPER_NETWORK_DIR . 'src/field.php';
require_once SUPER_NETWORK_DIR . 'src/insert.php';
require_once SUPER_NETWORK_DIR . 'src/network.php';
require_once SUPER_NETWORK_DIR . 'src/page.php';
require_once SUPER_NETWORK_DIR . 'src/plugin.php';
require_once SUPER_NETWORK_DIR . 'src/query.php';
require_once SUPER_NETWORK_DIR . 'src/section.php';
require_once SUPER_NETWORK_DIR . 'src/settings.php';
require_once SUPER_NETWORK_DIR . 'src/subquery.php';
require_once SUPER_NETWORK_DIR . 'src/suggestion.php';
require_once SUPER_NETWORK_DIR . 'src/table.php';
require_once SUPER_NETWORK_DIR . 'src/tools.php';
// Initialize the plugin.
$GLOBALS['supernetwork'] = new WP_Super_Network();
$GLOBALS['supernetwork']->run();