-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_base.php
More file actions
48 lines (40 loc) · 1.4 KB
/
_base.php
File metadata and controls
48 lines (40 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
<?php
/**
* The plugin bootstrap file
*
* This file is read by WordPress to generate the plugin information in the plugin
* admin area. This file also includes all of the dependencies used by the plugin,
* registers the activation and deactivation functions, and defines a function
* that starts the plugin.
*
* @wordpress-plugin
* Plugin Name: _base
* Plugin URI: _plugin_uri
* Description: This is a short description of what the plugin does. It's displayed in the WordPress admin area.
* Version: 1.0.0
* Author: _plugin_author_
* Author URI: _plugin_author_uri_
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: _base
* Domain Path: /resources/languages
*/
// If this file is called directly, abort.
if (! defined('WPINC')) {
die;
}
defined('BASE_PATH') or define('BASE_PATH', plugin_dir_path(__FILE__));
defined('BASE_URL') or define('BASE_URL', plugin_dir_url(__FILE__));
defined('BASE_NAME') or define('BASE_NAME', 'Base');
defined('BASE_VERSION') or define('BASE_VERSION', '1.0.0');
require_once __DIR__ . '/vendor/autoload.php';
$di = Base\ContainerFactory::make();
register_activation_hook(
__FILE__,
[$di->get('Base\Activator'), 'activate']
);
register_deactivation_hook(
__FILE__,
[$di->get('Base\Deactivator'), 'deactivate']
);
$di->get('Base\Base')->run();