Support » Plugins » Hacks » Editing Plugins without losing changes on upgrade

  • petriknz


    With the themes we can create a child theme so that changes we make do not get lost on an upgrade. Is it possible to do a similar thing with the plugin files? I need to change some files in a plugin but do not want to lose the changes every time I update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • michael.mariart


    No. Plugins don’t work that way. It would be a nice idea, but it hasn’t been implemented.



    i’m thinking is it possible to make the edited file in plugin not writable. so it won’t get updated in upgrade…



    That is possible, but it could also break the update process. If a file is suppsoed to be over-written and it can’t be it will throw an error and the site will either show that error and the update will fail or it will just die.

    Even if it did work, there’s also other problems can can happen if the file that you block from being editable contains the version numbers or anything else that’s needed by the system. If you stop the version numbers updating in the system so you’ll be asked to upgrade again, and again, and again… There’s a lot of other things that can go wrong too.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Editing Plugins without losing changes on upgrade’ is closed to new replies.