-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkiller-pads.php
38 lines (32 loc) · 1.09 KB
/
killer-pads.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
<?php
/**
* Plugin Name: Killer Pads
* Plugin URI: https://github.com/kodansha/killer-pads
* Description: Killer Pads is a plugin like security pads for "prevention is better than cure". It activates the default configuration of security and operational efficiency to WordPress websites.
* Version: 1.5.5
* Author: KODANSHAtech LLC.
* Author URI: https://github.com/kodansha
* License: GPLv3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
// Don't do anything if called directly.
if (!defined('ABSPATH') || !defined('WPINC')) {
die();
}
// Autoloader
if (is_readable(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
/**
* Initialize plugin
*/
function init()
{
(new Kodansha\KillerPads\AdminPad())->init();
(new Kodansha\KillerPads\RestRoutesPad())->init();
(new Kodansha\KillerPads\SecurityPad())->init();
if (!(defined('KILLER_PADS_ENABLE_COMMENTS') && KILLER_PADS_ENABLE_COMMENTS == true)) {
(new Kodansha\KillerPads\CommentsPad())->init();
}
}
add_action('plugins_loaded', 'init', PHP_INT_MAX - 1);