I have 4 sites I self-host myself with wordpress software (obviously) and today I went to my sites and I had pop-ups. One was russian porn and one was someother russian site. I went to my header.php file and I found a pop up code under the domain name protizer.ru and it was attached to affiliate code.
How did my sites get hacked? Is this happening to anyone else? I deleted the code and it fixed the problem, but what if this happens again?
How did it happen to two of my four sites?
To make matters worse my menu inside the write a post is now gone in one of my sites. So I can't use any of the text editing, bold, italics, etc.
Is there a way I can recover that?