I find myself editing a lot of plugins because they never satisfy my needs, but of course I have to keep them updated.

I was thinking about register activation hook into some function that loads the interested plugin file and regexes in the proximity of the content I need to edit and replace it and save the file. If the regex does not match nothing gets updated so it should be safe...

What do you suggest?

  • What about git merge.
    – Wyck
    Commented Feb 4, 2015 at 16:25
  • 1
    possible duplicate of How do I prevent Plugin updates from clobbering user edits?
    – kraftner
    Commented Feb 4, 2015 at 16:34
  • does not seem to be a duplicate because that post asks how to prevent custom files stored in plugins folders to be deleted upon plugins update, I want to keep edits on core plugins files upon update.
    – untore
    Commented Feb 4, 2015 at 16:42
  • Core plugins????? What do you mean? Are you modifying core files?
    – cybmeta
    Commented Feb 5, 2015 at 7:57
  • files core to the plugins, not to wp
    – untore
    Commented Feb 5, 2015 at 14:45

1 Answer 1


You should definitely use Version control systems like Git, SVN, Mercurial etc. It will cover all your needs and more.

  • Hello, updating on this suggestion, I tried using git and svn, on the plugin I manually edited but it ended being too cumbersome, git/svn/hg are meant for project developing, not for applying small ad hoc patches for each project/plugin update, it is clear that if I would end up modifying some plugins heavily I would just fork them and stop updating them from the main developers or use git merge or both. But in this case the patches are too small to justify the use of a vcs, and it is simpler to bookmark the few changes and apply them manually on the updated plugins.
    – untore
    Commented Apr 2, 2015 at 10:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.