PluginProbe
Mu Manager – Manage mu-plugins like standard plugins / 0.0.3
Mu Manager – Manage mu-plugins like standard plugins v0.0.3
trunk 0.0.1 0.0.2 0.0.3
mu-manager / mu-manager.php

mu-manager.php in Mu Manager – Manage mu-plugins like standard plugins 0.0.3, at mu-manager.php

30 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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