One morning your site looks fine to you, but customers are being bounced to a dodgy pharmacy page and Google has slapped a red warning on your search result. A hacked WordPress site is stressful, but it is recoverable. This guide walks you through spotting the signs, containing the damage, cleaning up and making sure it does not happen again.
Most WordPress hacks are not personal. They are automated. Bots scan millions of sites looking for an out-of-date plugin, a weak password on wp-admin or a theme with a known flaw. When they find one, they drop in malware and move on to the next target.
For a small business, that means the risk is less about being interesting to attackers and more about being easy. A site left on an old plugin version, with three people sharing the same admin login and no multi-factor authentication, is exactly what those scanners look for.
Two other routes are worth knowing. First, cheap shared hosting where one compromised site on the server can affect neighbours. Second, stolen login details from phishing emails or reused passwords, which let an attacker walk straight in through the front door.
The good news: the same handful of fixes stops the vast majority of it, and we cover them at the end of this guide.

Hacks are often quiet. Your site may load perfectly for you while visitors get redirected, because attackers can show the clean version to logged-in admins. Here is what to check.
If you are unsure, run a scan with a reputable security plugin and check your hosting control panel logs for logins from countries you do not operate in.
The instinct is to start deleting suspicious files immediately. Resist it. You need evidence and a safe copy of the current state before you change anything.
Work through this in order:
If your host offers a staging environment, ask them to copy the site there so you can investigate without affecting live visitors.
A WordPress infection usually lives in two places: the files and the database. Cleaning one and not the other is the most common reason a site gets re-infected within days.
On the files side, look for recently modified files in wp-content, uploads, themes and plugins. Attackers often hide code in files with innocent names, or add a single line to functions.php. Replace WordPress core, themes and plugins with fresh copies from the official repositories rather than trying to edit out the bad lines.
On the database side, check the wp_users and wp_usermeta tables for rogue accounts, and scan wp_options and wp_posts for injected scripts or spam links. A security plugin can help, but a manual look through recently changed options is worth doing.
If you are not confident reading PHP or SQL, this is the point to bring in help. Our WordPress support team cleans infected sites regularly and knows where the common hiding places are.
One warning: do not simply run a free scanner, see "clean" and stop. Scanners miss backdoors, and a backdoor means the attacker comes straight back in.
We can scan your WordPress site, identify rogue admin users and malware, and tell you plainly what needs fixing. No jargon, no pressure.
Explore WordPress support → Talk to SysFix →If the infection is deep, or you cannot be sure the site is genuinely clean, restoring from a backup taken before the hack is often faster and safer than a repair.
The key word is clean. A backup taken after the infection started will simply reinstate the malware. Work out roughly when the site was compromised by checking file modification dates and hosting logs, then pick a backup from before that point.
Before restoring:
Once restored, immediately change all passwords and salts again, because the old credentials may have been in the compromised site. If you have no usable backups at all, a data recovery specialist may be able to salvage something from the hosting account or old copies.
This is also the moment to fix your backup routine properly, so next time is a ten-minute job rather than a crisis.
Cleaning the site does not automatically clear the warning. Google needs to re-check it, and that takes a request from you.
In Google Search Console, open the Security Issues report and review what was flagged. Once you have cleaned and verified the site, request a review. Be honest in the notes: say what was infected and what you fixed. Reviews are usually processed within a few days, though it can take longer.
While you wait, check that your sitemap is clean and that no spam pages remain indexed. If attackers created hundreds of junk URLs, you may need to remove them and let Google recrawl. Also check your email sending reputation, because a hacked site is often used to send spam and that can affect your domain's deliverability.
Tell your customers what happened, briefly and plainly. A short note on your site or an email to regulars does more for trust than silence.
Recovery is only half the job. Without hardening, most hacked sites are hit again within months. These measures do the heavy lifting:
Server-level patching matters too. An out-of-date PHP version is a common weak point, as we explain in why your servers need patching now.
A backup you have never tested is a hope, not a plan. We can set up automatic off-site backups and check they restore properly.
Explore data backup → Talk to SysFix →Print this or keep it in your notes. It is the order of operations that keeps a bad day from becoming a worse one.
If any of this feels beyond what you or your team can safely do, that is normal. Most small businesses do not have a WordPress specialist in-house, and a botched clean-up can cost more than getting it right first time.
Bring in a specialist if the site is serving malware to customers, if you cannot identify how the attacker got in, if you have no clean backups, or if this is the second infection. Repeat infections almost always mean a backdoor or a weak entry point was missed.
It is also worth a conversation if your site is business-critical, for example it takes bookings or payments. Downtime and lost trust cost more than the clean-up.
Beyond the site itself, treat a hack as a security warning for the whole business. Check whether staff reuse passwords, whether your email accounts have multi-factor authentication, and whether your devices are patched. Our guide on how to prevent a cyber attack covers the wider basics, and our cyber security services can review the lot.
Once the site is clean and hardened, a simple monthly routine of updates, backup checks and login reviews keeps it that way.
Our team can recover your hacked site, restore a clean backup and harden it against repeat attacks. Get in touch for a friendly, no-obligation chat about what is happening.
Explore WordPress support → Book a FREE IT Consultation →Related services: WordPress support · website hosting · cyber security services
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.