Practical WordPress advice for website owners

My WordPress Website Was Hacked: What Should I Do Immediately?

Illustration of a business owner contacting website support from a home office
Editorial illustration; not a client incident screenshot or measured result.
In this guide
  1. First, decide whether visitors are currently at risk
  2. Use three priorities to organize the response
  3. Document what you know—and what is still uncertain
  4. Back up the current state without calling it clean
  5. Example: protect today’s orders before restoring last week
  6. Coordinate credentials and access changes
  7. Agree what “recovered” means for your business
  8. Frequently asked questions

When a WordPress website appears hacked, a rushed repair can create a second incident: lost orders, overwritten evidence or an accidental lockout. Start by deciding what must stop, what must be preserved and who is responsible for the recovery.

You do not need to solve the entire compromise before asking for help. A clear description of the symptoms and business impact is enough to begin an assessment.

First, decide whether visitors are currently at risk

Give priority to active harm: a payment page sending customers elsewhere, an unauthorized login form, malicious downloads or messages asking visitors for confidential information. Pause affected campaigns and transactions, and contact the host about appropriate containment.

If the evidence is less clear—for example, one unexpected administrator account—avoid deleting records immediately. Restrict the suspect access through a trusted account where safe, preserve its details and request investigation. If you cannot trust the administration area, ask the host for help rather than entering more credentials into it.

Use three priorities to organize the response

  • Stop exposure: limit the affected public functionality and unauthorized access.
  • Preserve a reliable record: save the symptoms, relevant logs and a protected incident snapshot where feasible.
  • Plan recovery: agree what will be repaired, how current business data will be protected and how the result will be checked.

These priorities can overlap. They are a way to coordinate people, not a reason to leave a dangerous page online while waiting for a perfect evidence package.

Document what you know—and what is still uncertain

Write down when you first noticed the issue, the affected addresses, screenshots of warnings and the changes made recently. Record actions already taken so the next person does not mistake a repair for attacker activity.

WordPress’s official hacked-site guidance recommends documenting symptoms and timing. Keep confirmed observations separate from theories: “a new account appeared” is useful; “the hosting company was breached” requires evidence.

Ask the hosting provider about log retention promptly. Preserve copies of relevant records where permitted, and keep them outside a public website directory. Logs, backups and screenshots can contain personal information or access tokens, so share them through an agreed secure method.

Back up the current state without calling it clean

A protected snapshot of current files and the database may help investigation and rollback. It is an incident copy, not necessarily a safe recovery point. Label it with its date and suspected compromise status.

Also locate earlier backups and establish when they were created, what they contain and whether they can actually be restored. A successful backup-job notification does not prove the archive is complete or malware-free.

For an active store or membership site, identify orders, registrations and other records added since a candidate backup. Restoring an older database can lose legitimate changes. Agree how those differences will be handled before authorizing a restore.

Example: protect today’s orders before restoring last week

A shop owner discovers injected content and has a backup from seven days earlier. Restoring it immediately might remove visible spam, but it could also discard a week of orders and restore a vulnerable plugin.

A better decision brief records the backup date, the suspected incident window, current order activity and whether the vulnerable component can be updated. The recovery specialist can then assess restoration, selective repair or another approach. This is an illustrative planning example, not a guarantee that any one method will work.

Coordinate credentials and access changes

Use a device you trust when changing passwords. Prioritize control of the hosting account, domain management, recovery email and administrator access as relevant to the incident. Review unfamiliar users and authentication methods instead of changing only one WordPress password.

Credential rotation needs coordination: changing database or integration secrets without updating dependent services can break the website. Ask the specialist to identify which credentials should change, when sessions should be revoked and what must be retested.

Never post administrator passwords, API keys or customer records in a public enquiry form. A legitimate recovery project should establish a secure, limited-access method after the initial discussion.

Agree what “recovered” means for your business

The recovery scope should distinguish malware investigation, removal of identified malicious changes, affected-function repair and risk-reduction measures. A cleanup is not automatically a penetration test, forensic breach investigation or regulatory assessment.

If personal or payment data may have been exposed, involve the appropriate business, legal and payment-provider contacts. Whether notifications are required depends on the facts, jurisdiction and agreements; do not assume removing a file settles that question.

Before reopening, check critical customer journeys, current content, account access and the original symptoms. Ask for a written summary of findings, completed work and unresolved questions. The WordPress hardening handbook describes security as reducing risk rather than eliminating it.

Request your free WordPress recovery quote. Tell Nithu what happened, which part of the business is affected and what your host has reported. Scope and pricing are agreed before work starts.

Frequently asked questions

Should I delete the whole website and start again?

Usually that is a decision to make after assessment. Deleting first can destroy useful evidence and business data, while a rebuild can still reuse compromised material if handled carelessly.

Is an older backup always the safest option?

No. It may already contain unauthorized changes, omit recent data or restore the original vulnerable setup. Its contents and timing need checking.

Can I keep taking payments during recovery?

That depends on the symptoms and affected systems. If the payment journey may be altered, pause it and coordinate with your provider rather than exposing more customers.

Can you assess the problem without my password?

An initial discussion can begin with the public URL, symptoms and redacted reports. If deeper access is required, an appropriate secure access method can be arranged later.

Prepared for website owners by Nithu / Suthakaran Nithursan. Dated incident facts link to their primary sources. Illustrative scenarios are examples, not client results or guarantees.