| 1 |
<?php |
| 2 |
/* |
| 3 |
Plugin Name: Mu Manager |
| 4 |
Description: It lets you disable, enable, and delete mu-plugins like you do with all other standard plugins. |
| 5 |
Author: Jose Mortellaro |
| 6 |
Author URI: https://josemortellaro.com |
| 7 |
Plugin URI: https://josemortellaro.com |
| 8 |
Domain Path: /languages/ |
| 9 |
Text Domain: mu-manager |
| 10 |
Version: 0.0.3 |
| 11 |
*/ |
| 12 |
/* This program is free software; you can redistribute it and/or modify |
| 13 |
it under the terms of the GNU General Public License as published by |
| 14 |
the Free Software Foundation; either version 2 of the License, or |
| 15 |
(at your option) any later version. |
| 16 |
This program is distributed in the hope that it will be useful, |
| 17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 |
GNU General Public License for more details. |
| 20 |
*/ |
| 21 |
defined( 'ABSPATH' ) || exit; // Exit if accessed directly. |
| 22 |
|
| 23 |
//Definitions |
| 24 |
define( 'MU_PLUGIN_MANAGER_PLUGIN_DIR', untrailingslashit( dirname( __FILE__ ) ) ); |
| 25 |
|
| 26 |
if( is_admin() && isset( $_GET['plugin_status'] ) && 'mustuse' === sanitize_text_field( $_GET['plugin_status'] ) ){ |
| 27 |
// Load backend scripts only in the mu-plugins page. |
| 28 |
require_once MU_PLUGIN_MANAGER_PLUGIN_DIR . '/admin/mupm-admin.php'; |
| 29 |
} |
| 30 |
|