Can I restore a plugin that was accidentally deleted? (on localhost)

I did something really stupid and accidentally removed a plugin that I've been working on for weeks, with no backups. (I know! Learning moment!)

Is there any way I can restore this plugin? It's not in my Windows recycle bin.

I deleted it through the WordPress wp-admin interface. Going to Plugins and clicking Delete.

Any help is greatly appreciated!

Topic backup plugins Wordpress

Category Web


Shot answer: It depends.

  • If you store your wordpress in a partition which do not contain OS, you get higher chance to recovery it.
  • If you has not rebooted your PC, you get higher chance.
  • If you've just deleted your plugins, you're likely to be able to recover it.

Try some data recovery softwares (like Recover My Files - Data Recovery) as soon as posible. I tried it sometimes in the past and have good result.

Next times, you should use a version control software like git and a remote git hosted service like github or bitbucket to save your ass.

Good luck buddy!

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.