-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
55 lines (47 loc) · 1.4 KB
/
Copy pathindex.php
File metadata and controls
55 lines (47 loc) · 1.4 KB
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
<?php
/**
* Plugin Name: Buster WP
* Plugin URI: https://github.com/MelonSmasher/Buster-WP
* Description: Buster WP is a WordPress client for your Buster server.
* Version: 1.0.0
* Author: MelonSmasher
* Author URI: https://github.com/MelonSmasher
* Text Domain: buster-wp
* Domain Path: localization
*
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels nice to relax.
|
*/
use BusterWP\WPBones\Foundation\Plugin;
require_once __DIR__ . '/bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Bootstrap the plugin
|--------------------------------------------------------------------------
|
| We need to bootstrap the plugin.
|
*/
// comodity define for text domain
define( 'BUSTERWP_TEXTDOMAIN', 'buster-wp' );
$GLOBALS[ 'BusterWP' ] = require_once __DIR__ . '/bootstrap/plugin.php';
if ( ! function_exists( 'BusterWP' ) ) {
/**
* Return the instance of plugin.
*
* @return Plugin
*/
function BusterWP()
{
return $GLOBALS[ 'BusterWP' ];
}
}