Does your plugin also work from the mu-plugins directory?
-
I used to use wp-fail2ban by directly placing wp-fail2ban.php into wp-content/mu-plugins/ so that it could not be deactivated and was always active for all sites I manage.
Seeing that your plugin has a couple of subfolders and files this might not be as easy…
Any tips? I read this page: https://codex.www.ads-software.com/Must_Use_Plugins and this tip but its not quite clear to me how to do this:
WordPress only looks for PHP files right inside the mu-plugins directory, and (unlike for normal plugins) not for files in subdirectories. You may want to create a proxy PHP loader file inside the mu-plugins directory:
<?php // mu-plugins/load.php require WPMU_PLUGIN_DIR.'/my-plugin/my-plugin.php';
Would this work like this in the case of your plugin?
<?php // mu-plugins/load-wp-fail2ban-redux.php require WPMU_PLUGIN_DIR.'/wp-fail2ban-redux/wp-fail2ban-redux.php';
- The topic ‘Does your plugin also work from the mu-plugins directory?’ is closed to new replies.