-
Notifications
You must be signed in to change notification settings - Fork 2
/
bootstrap.php
53 lines (46 loc) · 1.24 KB
/
bootstrap.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
<?php
/**
* Fulcrum Plugin
*
* @package Fulcrum
* @author hellofromTonya
* @license MIT
* @link https://github.com/wpfulcrum/fulcrum
*
* @wordpress-plugin
* @codingStandardsIgnoreStart
* Plugin Name: Fulcrum Plugin
* Plugin URI: https://github.com/wpfulcrum/fulcrum
* Description: Fulcrum - The customization central repository to extend and custom WordPress. This plugin provides the centralized infrastructure for the custom plugins and theme.
* Version: 3.0.0
* Author: hellofromTonya
* Author URI: https://github.com/wpfulcrum/fulcrum
* Text Domain: fulcrum
* Requires WP: 4.9
* Requires PHP: 5.6
* @codingStandardsIgnoreEnd
*/
namespace Fulcrum;
use Fulcrum\Config\ConfigFactory;
if (!defined('ABSPATH')) {
exit('Cheatin’ uh?');
}
// Don't load this file if we're in an integration test mode.
if (!class_exists('WP_UnitTestCase')) {
require_once __DIR__ . '/vendor/autoload.php';
}
fulcrum_declare_plugin_constants('FULCRUM', __FILE__);
/**
* Launch the plugin.
*
* @since 3.0.0
*
* @return FulcrumContract
*/
function launch()
{
return new Fulcrum(
ConfigFactory::create(__DIR__ . '/config/plugin.php')
);
}
launch();