-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
executable file
·36 lines (30 loc) · 1.04 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
<?php
/**
* Plugin Name: Custom PHP settings
* Plugin URI: https://wordpress.org/plugins/custom-php-settings/
* Description: Customize PHP settings.
* Version: 1.4.5
* Requires at least: 3.1.0
* Requires PHP: 5.6
* Author: Cyclonecode
* Author URI: https://stackoverflow.com/users/1047662/cyclonecode?tab=profile
* Copyright: Cyclonecode
* License: GPLv2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: custom-php-settings
* Domain Path: /languages
*
* @package custom-php-settings
* @author custom-php-settings
*/
namespace CustomPhpSettings;
require_once __DIR__ . '/vendor/autoload.php';
use CustomPhpSettings\Backend\Backend;
add_action('plugins_loaded', function () {
if (is_admin()) {
Backend::getInstance();
}
});
register_activation_hook(__FILE__, array('CustomPhpSettings\Backend\Backend', 'activate'));
register_deactivation_hook(__FILE__, array('CustomPhpSettings\Backend\Backend', 'deActivate'));
register_uninstall_hook(__FILE__, array('CustomPhpSettings\Backend\Backend', 'delete'));