Disable Plugin Installation


A really simple way to disable the installation of a single plugin is to set the value:

$plugin->version = 0;

In the plugin’s version.php file. For example the plugin might be failing etc.

If you want to disable plugin installations from within the site via the navigation:

Site administration > Plugins > Install plugins

Set the following flag in config.php. This might be a good idea if you have non-technical users with Site administration access, otherwise there could be trouble!

$CFG->disableupdateautodeploy = true;
Remember to clear your cache for this setting to take effect.

Revision #1
Created Wed, Aug 7, 2019 4:29 PM by Moodle Wiki
Updated Wed, Aug 7, 2019 4:33 PM by Moodle Wiki