-
Notifications
You must be signed in to change notification settings - Fork 1
/
declutter-wp.php
33 lines (26 loc) · 1.17 KB
/
declutter-wp.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
<?php
/*
Plugin Name: Declutter WP
Plugin URI: https://github.com/operat/declutter-wp
GitHub Plugin URI: https://github.com/operat/declutter-wp
Description: Remove unnecessary clutter from WordPress to improve security and performance.
Version: 1.2
Author: Operat
Author URI: https://www.operat.de
License: GNU GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/
if (!defined('WPINC')) { die; }
define('DECLUTTER_WP_NAME', 'Declutter WP');
define('DECLUTTER_WP_DESCRIPTION', 'Remove unnecessary clutter from WordPress to improve security and performance.');
define('DECLUTTER_WP_URL', 'https://github.com/operat/declutter-wp');
require_once 'DeclutterWP.Declutter.php';
require_once 'DeclutterWP.PluginManager.php';
add_action('init', array('DeclutterWP_PluginManager', 'init'));
register_activation_hook(__FILE__, array('DeclutterWP_PluginManager', 'setDefaultOptions'));
register_activation_hook(__FILE__, array('DeclutterWP_PluginManager', 'removeRewriteRules'));
register_deactivation_hook( __FILE__, array('DeclutterWP_PluginManager', 'flushRewriteRules'));
if (is_admin()) {
require_once 'DeclutterWP.SettingsPage.php';
$settingsPage = new DeclutterWP_SettingsPage();
}