Plugin in “mu-plugins” folder won’t load on sub-sites in WordPress Multisite

Today I had an issue where I dropped a plugin into the “mu-plugins” folder on a WordPress multisite installation, and the plugin failed to load.

After doing some digging, I discovered that certain plugins need additional help to load.

The solution in my case was to add a file called “load.php” to the “mu-plugins” folder with the following php code in it:

<?php // mu-plugins/load.php
require WPMU_PLUGIN_DIR.'/my-plugin/my-plugin.php';

(Make sure to change “my-plugin” to the new plugin’s folder name.)

Works like a charm now!

Is this helpful?

Toby Cryns

Toby Cryns is a freelance CTO, expert WordPress developer, and teacher.

He offers free advice to improve your freelance biz.

He also publishes small droppings every now and them to https://twitter.com/tobycryns and https://twitter.com/themightymo.com

Follow Toby's contributions on Github and WP.org.