-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdm-muloader.php
More file actions
33 lines (28 loc) · 867 Bytes
/
dm-muloader.php
File metadata and controls
33 lines (28 loc) · 867 Bytes
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
<?php
/**
* Plugin Name: DM MuLoader
* Plugin URI: https://github.com/DeliciousMedia/DM-MuLoader
* Description: Automatically load must use plugins from subfolders.
* Version: 2.2.1
* Author: Delicious Media Limited
* Author URI: https://www.deliciousmedia.co.uk
* Text Domain: dm-muloader
* License: GPLv3 or later
* Contributors: davepullig
*
* Copy this file to your mu-plugins folder.
*
* @package dm-muloader
**/
// Don't run if we're installing WordPress.
if ( defined( 'WP_INSTALLING' ) && WP_INSTALLING === true ) {
return;
}
// Include the main plugin file if it exists, otherwise fail.
$mumuload_plugin_file = WPMU_PLUGIN_DIR . '/dm-muloader/dm-muloader-plugin.php';
if ( is_file( $mumuload_plugin_file ) ) {
require_once $mumuload_plugin_file;
} else {
die( 'dm-muloader plugin file is missing.' );
}
unset( $mumuload_plugin_file );