Last updated: November 2026
You open your website and see Japanese text, a casino pop-up, a “Deceptive site ahead” warning, or your homepage redirecting somewhere strange. Panic is normal. The question in your head is: WordPress site hacked what to do first? I build and fix this for businesses across Pakistan (Lahore, Karachi, Islamabad and more) and as a developer based in Pakistan working remotely with clients in the UK, UAE, USA and Canada. This post is not about finding the hack (I covered that separately). It’s the calm, first-hour action plan: what to do, what not to touch, and when to call in help.
Quick answer: If your WordPress site is hacked: don’t delete anything yet, take a full backup of the infected site, change all passwords, check for unknown admin users, put the site in maintenance mode if it’s harming visitors, and get a proper clean-up done. Then patch the cause so it doesn’t come back.

WordPress Site Hacked What to Do: The First Hour
When owners message me asking “WordPress site hacked what to do?”, I give them this order. It protects evidence, stops further damage and makes the clean-up faster.
Step 1: Stay calm and don’t start deleting files
Deleting random files or reinstalling plugins without a plan can break the site and destroy clues about how the attacker got in. Clues matter, because if you don’t find the entry point, the hack returns.
Step 2: Take a full backup of the hacked site
Yes, back up the infected version. Download the files and export the database from your hosting panel. This is your evidence and your safety net if a clean-up step goes wrong. Label it clearly as “INFECTED — do not restore”.
Step 3: Change every password
Change passwords for:
- WordPress admin accounts
- Hosting control panel (cPanel, Plesk, etc.)
- FTP/SFTP accounts
- Database user (and update wp-config.php)
- Your email account linked to the site
Use long, unique passwords. If the attacker still has the hosting password, cleaning the site is pointless.
Step 4: Check WordPress users
Go to Users in wp-admin. Look for administrators you don’t recognise, especially ones created recently. Don’t just delete them yet; note their username, email and creation date first, then remove their access.
Step 5: Put the site in maintenance mode if it’s harming visitors
If your site is redirecting visitors to scam pages or downloading files, show a maintenance page while you fix it. It’s better to be offline for a few hours than to infect customers or get blacklisted.
Step 6: Tell your hosting company
Most hosts have a security team and logs that show which files were changed and when. Some will help scan or restore. Ask them for access logs from the last few days.
Step 7: Check Google’s view of your site
Open Google Search Console and look at Security Issues. You can also check Google’s Safe Browsing site status to see whether your domain is flagged.
Step 8: Decide: restore or clean?
If you have a clean backup from before the hack and you know when the hack started, restoring can be quick. But you still need to fix the cause, or it will be reinfected. If you don’t have a clean backup, you need a manual clean-up.
Step 9: Patch the entry point
The most common causes I see are outdated plugins, nulled (pirated) themes and plugins, weak passwords and old PHP versions. Patch the actual cause, not just the symptoms.
What NOT to Do When Your Site Is Hacked
- Don’t pay “hackers” who email you claiming they can fix it or remove you from blacklists.
- Don’t just reinstall WordPress and assume it’s clean; malware often hides in uploads, the database or theme files.
- Don’t restore a backup without checking it; it may already contain the backdoor.
- Don’t ignore it because “the homepage looks fine”; many hacks only show to Google or to mobile visitors.
- Don’t install five security plugins at once; they conflict and slow the site.
How to Tell What Kind of Hack It Is
| Symptom | Likely type | Urgency |
|---|---|---|
| Redirects to spam/casino sites | Redirect malware in files or database | High |
| Japanese or pharma pages in Google | SEO spam injection | High |
| Unknown admin users | Account compromise | High |
| “Deceptive site” warning in Chrome | Blacklisted by Google | Very high |
| Hosting suspended for malware | Server-side infection | Very high |
| Site slow, high CPU, spam emails sent | Backdoor or mailer script | High |
For a full walkthrough of the signs and free checks, see my guide on how to check if your WordPress site is hacked.
Who to Call: DIY, Host or Professional?
When DIY might work
If you’re comfortable with file managers and databases, the hack is simple and you have a clean recent backup, you may handle it yourself using the official WordPress hardening guide and a reputable scanner.
When your host can help
Some managed hosts include malware clean-up. Others only scan and tell you what’s infected. Ask exactly what they’ll do.
When to call a professional
Call a WordPress security professional if:
- The site keeps getting reinfected.
- Google has blacklisted you or your host has suspended the account.
- You run an online store or take bookings, and every hour offline costs money.
- You don’t know where to start, or you’re worried about breaking the site.
WordPress Site Hacked What to Do for Online Stores
If you run WooCommerce, the stakes are higher, because customer names, addresses and order data are involved. On top of the steps above:
- Pause checkout if there’s any sign of card-skimming code or a fake payment form. Customers’ trust matters more than a few hours of sales.
- Check payment gateway settings in WooCommerce to make sure nobody changed account details or callback URLs.
- Review recent orders for anything unusual, like orders created by unknown admin users.
- Tell your payment provider if you suspect payment data was targeted. They’ll advise on what to do next.
- Keep customers informed honestly if their data might be affected. Hiding it usually makes things worse.
Store owners in Pakistan should also check that JazzCash or Easypaisa plugin files weren’t modified; compare them with a fresh download from the official source.
A Simple Incident Log
Whatever you do, keep a short log: date and time you noticed the hack, what you saw, what you changed, who you contacted. It helps your developer, your host and Google’s review team, and it’s useful if the same problem returns. When people ask me “WordPress site hacked what to do” a second time, the log is usually what helps us find the real cause quickly.
After the Clean-Up: Stop It Happening Again
Once the site is clean, the work isn’t finished. Anyone who has searched “WordPress site hacked what to do” more than once knows that a clean-up without hardening is temporary. Do these within the same week:
- Update WordPress core, themes and plugins.
- Remove any nulled plugins or themes. They’re a frequent cause, which I explained in my post on nulled plugin malware.
- Delete unused plugins and themes.
- Set up automatic off-site backups.
- Add a firewall and login protection.
- Use two-factor authentication for admins.
- Ask your host to move you to a supported PHP version.
- Request a review in Google Search Console if you were flagged.
If you’re comparing what a clean-up costs, my earlier post on the WordPress developer hourly rate explains how security work is usually billed.
Why Businesses Hire Me for This
I’m Muhammad Talha. When business owners search “WordPress site hacked what to do” and decide they need to hire wordpress developer help fast, here’s what I do:
- Same-day assessment of the infection and the likely entry point.
- Full clean-up of files and database, including hidden backdoors.
- Removal of unknown users, password resets and security keys rotation.
- Hardening: updates, firewall, login protection, backups and PHP version check.
- Blacklist recovery: Search Console review request and host communication.
I work with local businesses across Pakistan and remotely with clients in the UK, UAE, USA and Canada. International clients get help in their working hours via WhatsApp or Zoom and pay via Payoneer, Wise or bank transfer; local clients pay in PKR. To start, send me your site URL and what you’re seeing.
FAQs
How much does it cost to fix a hacked WordPress site?
It depends on how deep the infection is and how many sites are on the account. Simple clean-ups usually start from around PKR 10,000-25,000 locally or $60-$150 internationally; complex or reinfected sites cost more. I quote after a quick check.
How long does a clean-up take?
Most clean-ups take a few hours to one working day. Blacklist removal by Google can take an extra day or more after the review request.
Will I lose my content or SEO rankings?
Usually not, if the clean-up is done carefully. Fast action actually protects your rankings, because long-term spam or blacklisting is what causes damage.
Can you fix it if I don’t have any backup?
Yes. A manual clean-up doesn’t need a backup. But after fixing it, I set up proper backups so you’re never in that position again.
Final Thoughts
If you’re asking “WordPress site hacked what to do,” remember the order: back up the infected site, change every password, check users, protect visitors, then clean and patch the cause. Acting calmly in the first hour saves your data, your customers and your Google rankings.
If you’d rather not handle it alone, send me your site link. I’ll tell you what’s going on and how quickly it can be fixed.


