Originally created by: corzel
Hi,
If someone needs to install a custom mu-plugin with a single php file, according to documentation: "WordPress only looks for PHP files right inside the mu-plugins directory, and (unlike for normal plugins) not for files in subdirectories".
By default SlickStack delete and recreate mu-plugins folder every day, so if you copy manually your mu-plugin this will be erased all the time.
So, to install it you can follow the following steps:
SS_MU_PLUGINS="custom"Add new lines at the end of mu-plugins list, change XX for the next number of the list. As a destination directory put the name of you PHP file.
MU_PLUGIN_XX_SOURCE="https://mydomain.xyz/wp-content/uploads/my_mu-plugin.zip"
MU_PLUGIN_XX_DIR="my_mu-plugin.php"
Run ss-install-wordpress-mu-plugins
sudo bash /var/www/ss-install-wordpress-mu-plugins
Check if your php file is in mu-plugins folder. The modification date/time must be the same (+- secs) than autoloader.php & xxx-notices.php
That's is all.