So, you think that your WP Site got hacked, what is the first thing you should do?
There are quite literally several dozen things that you should do, but each case is different. I will try to highlight the most important points below. The reason that there are so many steps is that there are so many different ways to approach this dilemma. The most immediate decision for you is are you going to adopt a hands-off approach of hiring a security consultant to clean it for you, or are you going to go the DIY route like I chose to do. Even then, there are so many different ways that people prefer to do things. Overall, this process involves a lot of smaller steps, but there is one step to the whole process that is really big, regardless of whether you DIY or hire someone to do the cleanup. It may be the single most important aspect of this entire process: and that is changing your mindset on about how you approach security. And that folks, is a massive undertaking, because changing the way your mind operates may also be the single hardest step in this entire how-to guide.
The following are all recommendations on my part, suggestions that you need to discard or accept, but in my opinion they make up a fairly logical progression on how to deal with such issues should you ever find yourself in this situation. You can of course choose to perform these steps in a different order, but I believe that they will be most effective in the order I present them. I hope they will at least be a helpful aid to you in your time of need, allowing you to recover as much of your website as is possible. Cleaning any hack is going to take some time and effort, so you really need to think about whether you want to tackle this on your own. In the end, I think you’ll be happy that you chose to do it yourself. As with any such DIY process, you assume all risk and responsibility for any and all actions and outcomes, and obviously your mileage may vary. No matter which direction you decide to go, I’ll wish you the very best of luck in your cleaning endeavors!