How Do I Disable WordPress MU-plugins?

WordPress MU-plugins are great for adding extra features to your blog, but they can also be a security risk. If you don’t want to use MU-plugins, there are a few ways to disable them.

The first way to disable a MU-plugin is to go to the plugin’s settings page and disable the plugin. This will stop the plugin from running and you will need to manually activate it each time you want to use it.

Another way to disable a MU-plugin is to delete the plugin’s folder from your WordPress installation.

If you want to disable all MU-plugins on your WordPress site, you can use the wp_mu_plugins filter. This filter will disable all MU-plugins on your site, regardless of whether they are enabled or not.

You can also use the wp_clear_mu_plugins filter to completely remove all the MU-plugins from your site.

Finally, you can also use the WP_Disable_MUA() function to disable all the MU-plugins on a specific WordPress site. This function will return a boolean value that you can use in your WordPress code to determine whether the MU-plugins are enabled or not.