If you believe or are certain that your WordPress site has been hacked, then there are some basic steps you can take to either gain access back to your website, or remove the malware that has been injected into its code.
If your WordPress blog hasn’t been hacked, but you want to avoid future unpleasant experiences, then the best advice I can give you is: Keep backups…