• Hi!
    We have a WordPress autoinstaller that allows users to automatically install the latest version of WordPress on their website, unfortunately many users tend to install cache plugins which break their site / not compatible with our platform.

    Is there any code we could add to a fresh install that would disable users from installing certain plugins mainly w3 total cache I’m not sure what kind of code though…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dion

    (@diondesigns)

    You could set up your auto-installer to create the directory names of the plugins you don’t want installed. Set the owner of the directories to root, and their permissions to 0700. That will block the installation of the plugins.

    You could also write a bash script to add those directories to current customer sites.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Another possibility is to build a list of “prohibited” plugins and write a script to search for them, then use wp-cli to deactivate them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disabling installation of certain plugins?’ is closed to new replies.