Skip to content
Arrow keys to move, Enter to open, Esc to closeAll results
Security · Guides

How to Make a WordPress Site GDPR Compliant: A Practical Orientation

An orientation to GDPR for WordPress owners: map your data, choose lawful bases, handle cookies, vendors and requests, and know when to ask a lawyer. Not legal advice.

Written by
WPresident Editorial
Topic
Security

Most WordPress owners meet GDPR as a pop-up. A cookie banner plugin goes in, a privacy policy generator fills a page, and the matter feels closed. It is not closed, and no plugin can close it for you, because the regulation does not ask whether your site has a banner. It asks what you do with people’s personal data, why you are entitled to do it, whether you told them, whether you protect it, and whether you can show all of that if someone asks. A plugin can see a small part of that picture. The rest lives in your forms, your host, your email, your backups and the third-party scripts your theme loads without telling you.

First, a plain statement of what this guide is. It is general orientation written by WPresident Editorial from public documentation and the structure of the regulation. It is not legal advice, we are not a law firm, and nothing here can tell you whether your particular site meets the law. Compliance is not a badge you install. It is a judgement about your real data practices, made by regulators and courts on the facts of your case, so this guide will never say that a site, a plugin or a checklist makes you compliant. It can show you how to find what your site does, which questions matter and the order to work in.

The one idea to carry through every section is that GDPR is a regime of decisions and evidence. For each purpose you use personal data for, you should be able to say what data you hold, why you need it, which legal basis you rely on, who else sees it, how long you keep it, how it is protected and how a person can exercise their rights. Written down, that is not a heavy document for a small site. Left unthought, it is where most real problems start. WordPress makes the thinking harder than it looks, because a typical site is not one system. It is core, a theme, a builder, a dozen plugins, a host, a content delivery network, an email service, an analytics tool and several embedded widgets, each of which may collect or receive personal data on its own.

That is why the practical work begins with a map, not a policy. Once you know where personal data enters, sits and leaves, the other jobs follow: choosing a lawful basis per purpose, writing a true notice, deciding which scripts need consent, agreeing terms with vendors, answering requests, setting retention limits and securing what you keep. Skip the map and each is guesswork.

A quick word on who this concerns. GDPR is not limited by site size, business status or server location. It applies, broadly, to organisations established in the EU, and to those outside it that offer goods or services to people in the EU or monitor their behaviour. A small shop, a club website, a freelancer’s portfolio and a niche blog can all be in scope, because the exemption for purely personal or household activity is narrow. Other countries have their own regimes, among them the United Kingdom, Switzerland and Brazil. The habits here help under all of them, but this text speaks in GDPR terms, so check the rules and the regulator for where you operate.

The sections follow the order of work, from scope and the data map through cookies, forms, analytics, vendors and requests, to retention, security and an audit method that ends with a clear list of when to stop and ask a lawyer. Rules and regulator guidance keep moving, cookie rules in particular, and there are ongoing proposals to amend parts of the EU framework. Treat everything here as a starting point to verify against your regulator’s current guidance and the vendor pages for the tools you use.

Key points

  • GDPR depends on whose data you handle and what you do with it, not on site size or server location, and a cookie banner addresses only one narrow slice of it.
  • Start with a map of every place personal data enters, lives and leaves, including logs, backups, email and third-party scripts, because the policy, consent, agreements and requests all follow from it.
  • Choose a lawful basis for each purpose rather than for the whole site: consent suits optional tracking and marketing, and is the wrong tool for things you must do anyway, such as fulfilling an order.
  • The rule on cookies and similar tracking comes from separate ePrivacy law, and it asks for consent before non-essential scripts run, which you can check yourself in a browser.
  • Every host, plugin service and embed that touches visitor data belongs on your map, and a service that processes data on your behalf needs a written agreement with you.
  • The WordPress export and erase tools cover only core and plugins that register with them, so a real request means sweeping email, CRM, backups and logs by hand with a written procedure.
  • Never claim compliance, keep a dated record of what you decided and why, and bring in a lawyer for sensitive data, children, large-scale tracking, cross-border transfers or any complaint.

What GDPR asks of a site owner, and what it does not

Start with the vocabulary, because the law uses ordinary words in particular ways. Personal data is any information relating to an identified or identifiable person. Names and email addresses are the obvious cases. Less obvious ones matter more on websites: an IP address, a cookie identifier, a user ID, a device fingerprint or a pseudonymous customer number can each qualify, because they can be used to single someone out, even if you never learn the person’s name. Data that has been pseudonymised is still personal. Only data that cannot reasonably be tied back to anyone is outside the regulation, and true anonymisation is harder than renaming a column.

Processing means nearly anything you do with the data: collecting, storing, reading, sending, combining, deleting. If your site receives a form entry, you are processing. If a plugin logs a visitor’s IP address, you are processing, even if you never open the log. The person the data relates to is the data subject. The organisation that decides why and how the data is used is the controller, and for most WordPress sites that is you. A service that handles the data on your instructions, such as your host or an email delivery service, is a processor. Some third parties decide their own purposes, which makes them controllers in their own right, and a few arrangements create shared responsibility. A later section returns to those roles.

The principles below are worth knowing because every other rule is a consequence of them. The last one, accountability, is why documentation matters even on a tiny site: you are responsible for complying and for being able to demonstrate how.

  • Lawfulness, fairness and transparency: have a basis and tell people plainly.
  • Purpose limitation: say why you collect it and stick to that.
  • Data minimisation: collect what you need, not what might be handy.
  • Accuracy: keep it correct and fix it when told.
  • Storage limitation: delete or anonymise when you no longer need it.
  • Integrity and confidentiality: secure it against loss and misuse.
  • Accountability: be able to show your reasoning.

What GDPR does not do is forbid collecting data, require consent for everything, or accept a document in place of practice. It also does not govern cookies on its own. Storing or reading information on a visitor’s device is covered by a separate European rule, the ePrivacy framework, which Europe’s member states each turned into national law. The two sets of rules overlap and interact, and mixing them up is behind much of the confusion around banners.

Two rule sets that website owners often blur together

GDPRePrivacy rules on cookies and similar tech
What it governsAny handling of personal dataStoring or reading information on a visitor’s device
What triggers itPersonal data is processedA cookie, local storage item or similar is set or read, personal or not
Role of consentOne of six possible lawful basesThe default, with narrow exceptions for strictly necessary storage
Where the rule livesOne EU regulation, same text everywhereAn EU directive turned into national law, so details vary by country
WordPress exampleA contact form entry, a comment, an orderAn analytics cookie, an ad pixel, a chat widget identifier
Question to askWhy do I hold this and for how long?Does this script run before the visitor has chosen?
GDPR governs what you do with personal data, while the ePrivacy rules govern what you place on or read from a visitor’s device.

Map the personal data your site collects

Every later step depends on a data map, so build it before touching a setting. The method is simple and slightly tedious. Walk through the site as a visitor, then as an editor, then as the host, and write down every moment personal data is created, stored or sent somewhere. A spreadsheet is enough. Give each row a data item, the place it is stored, the purpose, the lawful basis, who can access it, who receives it, how long it is kept and whether it leaves the European Economic Area. Do not worry about the columns you cannot fill yet. A blank cell is a finding.

Begin with what WordPress core does by itself. The users table holds login names, email addresses and display names, and the usermeta table holds profile fields and session information. Comments store the author’s name, email address, website, IP address and browser user agent along with the text. If avatars are enabled, WordPress asks an external avatar service for each commenter’s picture using a hash of their email address, which means a request leaves your server and a visitor’s browser fetches the image from a third party. A search plugin may log queries, and queries sometimes contain names.

Next come plugins, which usually hold the most data. Form plugins store entries, often with the sender’s IP address, the page they came from and any uploaded files. Store plugins hold billing and shipping addresses, order history and customer notes. Newsletter and CRM plugins hold subscriber lists, tags and activity. Security plugins log failed logins with IP addresses, and booking or membership plugins hold profiles. Many forward data to a service you may not think of as a vendor: email delivery, spam filtering, payments, translation or AI.

Then the less visible places. Your web server writes access logs with IP addresses and requested URLs, and error logs can record details from requests. A WP_DEBUG log written to the content folder can capture user data in warnings. Form attachments land in the uploads folder, where file names are sometimes guessable. Notification emails copy form entries into mailboxes that have their own retention. Backups hold complete copies of everything, often at a third party. And staging or development copies of the site frequently carry real customer data with weaker protection than production, which is among the most overlooked items on any map.

Finally, list what loads in the visitor’s browser from outside your domain: fonts, scripts, video players, maps, chat widgets, share buttons. Each one sends the visitor’s IP address and browser details to another company during page load. When you finish, you will usually find more data and more recipients than you expected, which is the point of the exercise.

Where personal data hides in a WordPress site

BrowserCookies, local storage and every third-party script or embed that loads from another domain
EdgeCDN, firewall and DNS services that see each request and visitor IP address
Web serverAccess and error logs with IP addresses, URLs and user agents
WordPress databaseUsers, comments, form entries, orders, subscribers and privacy request records
File systemUploads and form attachments, debug logs, cache files and generated exports
Connected servicesEmail delivery, CRM, payment, analytics, spam filtering and AI or translation APIs
CopiesBackups, staging sites, exported spreadsheets and mailbox archives
Walk the layers from the browser down to your copies, because a data map that stops at the database misses most of the exposure.

Lawful bases in plain English

GDPR says you may process personal data only if you have a lawful basis for that specific purpose, and you must tell people which one you rely on. There are six, and a typical WordPress site uses four of them. The skill is matching each purpose to the right one, because the choice changes what you owe people. Choose by purpose, not once for the whole site: the same visitor can be a customer under one basis and a marketing contact under another.

Contract covers processing that is necessary to deliver what the person asked for: taking an order, creating the account they requested, sending the login email. The word necessary does real work. A phone number you merely like to have is not necessary for a digital download. Legal obligation covers records the law forces you to keep, such as invoices for tax and accounting, for the period national law sets. Consent means a free, specific, informed and unambiguous choice, given by a clear affirmative act and as easy to withdraw as to give. It fits optional things that mainly benefit you: marketing email, non-essential tracking, optional profiling. Legitimate interests fits things you need to run and protect the site that visitors would reasonably expect, such as security logging, spam filtering and answering an enquiry someone sent you.

Legitimate interests is flexible but not free. You should be able to show three things: the interest is genuine, the processing is necessary for it, and the balance with the person’s rights and expectations favours you. Write that down in a few lines per purpose. People can object, and for direct marketing an objection must be respected. The other two bases, vital interests and public task, rarely apply to a private website.

Three mistakes recur. The first is asking consent for everything. A tick box saying you agree to the privacy policy is not consent to reply to an enquiry, and bundling a newsletter into the same box makes the consent neither specific nor free. If consent is your basis you must stop when it is withdrawn, and you cannot quietly switch to another basis to carry on. The second is assuming a GDPR basis settles the cookie question. The ePrivacy rule can require consent for a tracking script even where legitimate interests would otherwise be arguable. The third is forgetting special cases: health, beliefs and other sensitive data need an extra condition, and children’s data brings age thresholds that differ by country. Those are lawyer territory.

Which lawful basis fits this purpose?

Why are you processing this particular data?
The visitor asked for something you cannot deliver without it, such as an order, account or bookingContract is usually the basis. Collect only the fields the service genuinely needs.
A law requires you to keep it, such as invoices and tax recordsLegal obligation. Keep it for the period the law sets, then delete it.
It is optional for the visitor and mainly benefits you, such as marketing email or ad trackingConsent, collected before processing and as easy to withdraw as to give.
You need it to run or protect the site and visitors would expect it, such as security logs or answering a messageLegitimate interests, with a short written balancing note and an easy way to object.
Pick the basis for each purpose separately, and treat the right-hand answers as starting points to confirm, not as rulings.

The privacy policy: what it must say and how to keep it true

The privacy notice is how you meet the transparency duty. The regulation lists what people must be told when you collect data from them: who you are and how to contact you, the purposes and the lawful basis for each, the legitimate interests you rely on if any, who receives the data, whether it leaves the European Economic Area and under what safeguard, how long you keep it or how you decide, the rights people have, the right to withdraw consent, the right to complain to a regulator, whether giving the data is required and what follows if they refuse, and whether any automated decisions are made. If you obtain data from another source, you must say where it came from.

Two practical points matter more than the list. First, tell people at the moment of collection, not only on a page nobody opens: a short line beside the submit button, a note at account creation and checkout, and a footer link cover most cases. Second, write for the reader. A layered notice, with a summary on top and detail beneath, beats a wall of legal text, and plain language is itself part of the requirement.

WordPress helps with the starting point. Under the Privacy settings you can designate your privacy policy page, and a policy guide screen shows suggested text supplied by core and by plugins that register it. Treat that text as raw material: each suggestion is a generic statement about what a tool might do, and only you know whether it matches your configuration. A generated policy that says you use no cookies while an analytics script sets several is worse than a short honest one.

The deeper problem is drift. A policy is accurate on the day you write it and starts going stale when you add a plugin, switch an email service or turn on a new tracker. Tie policy review to change: whenever you add or remove anything that touches personal data, update the data map, then update the notice, then record the date. Keep older versions so you can show what people were told at a given time.

If you maintain your own plugin or a small must-use plugin, you can add suggested text to the policy guide yourself with a core function. Call it from the admin initialisation hook, as core documents.

add_action( 'admin_init', function () {
    if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
        return;
    }
    $text = '<p>Describe what your code collects, why, where it is sent and how long it is kept.</p>';
    wp_add_privacy_policy_content( 'My Custom Plugin', wp_kses_post( wpautop( $text, false ) ) );
} );

The ePrivacy rule is simple to state. Storing information on a visitor’s device, or reading information already there, needs the visitor’s consent unless it is strictly necessary to provide a service they explicitly asked for. It applies to cookies, local storage, tracking pixels and fingerprinting, whether or not the data is personal. Strictly necessary covers a login session, a shopping basket, a security token and the cookie that remembers the consent choice itself. It does not cover advertising, most analytics, or embeds that profile visitors. Some regulators have published narrow conditions under which tightly configured first-party audience measurement can run without consent, and many have not, so check your national authority rather than assuming.

When consent is needed, the GDPR standard defines what counts. It must be freely given, specific, informed and unambiguous, expressed by a clear affirmative action. In practice that rules out pre-ticked boxes, which the EU Court of Justice addressed in a 2019 ruling, and it rules out treating scrolling or continued browsing as agreement. Refusing must be about as easy as accepting, so a large Accept button beside a buried Reject link is the pattern regulators object to most. Choices should be by purpose, and a visible control must let visitors change their mind later. Many regulators are sceptical of walls that deny access unless you accept tracking. You should also be able to demonstrate the choice, so store it with a timestamp and the banner version.

Timing is where sites fail. Consent must come before the non-essential script runs. The classic failure is a banner that appears beautifully while analytics and advertising tags have already fired. A banner plugin does three jobs: it shows the choice, it stores the decision, and it holds back scripts until the decision allows them. The third job is the hard one, and the one to test. Common methods are rewriting script tags so the browser ignores them until consent, replacing embedded frames with a click-to-load placeholder, and routing tags through a tag manager that reads the consent state. Google’s consent mode is a signalling layer for its own tags. It changes how they behave but does not itself settle whether that behaviour needs consent in your country.

Client-side gating works well with page caching because the cached HTML is the same for everyone. The idea in miniature looks like this: the tag is inert text until the visitor accepts the matching category.

<script type="text/plain" data-consent-category="analytics" data-src="/assets/analytics.js"></script>
function loadConsentedScripts(category) {
  var selector = 'script[type="text/plain"][data-consent-category="' + category + '"]';
  document.querySelectorAll(selector).forEach(function (node) {
    var script = document.createElement('script');
    script.src = node.getAttribute('data-src');
    script.async = true;
    node.parentNode.replaceChild(script, node);
  });
}

Test it the way an inspector would. Open a private window with developer tools, and before touching the banner look at the cookies, local storage and network requests to other domains. Then reject everything, reload and look again. Accept one category and confirm only that category loads. Withdraw and confirm the scripts stop. Repeat on a post with an embed, on checkout, and after any plugin update, because updates add trackers.

A page load that respects the choice

  1. Serve the pageOnly necessary scripts run, and the banner is shown
  2. Hold optional tagsAnalytics, ads and embeds stay inert, sorted by category
  3. Visitor choosesAccept, reject or customise, with equal prominence
  4. Record itStore the choice, timestamp and banner version in a first-party cookie
  5. Release approved tagsOnly the categories the visitor allowed load or run
  6. Keep it reopenableA persistent link lets them change or withdraw at any time
The order matters: nothing optional runs until the visitor has chosen, and the choice stays reachable afterwards.

Forms, comments, accounts and newsletters

Forms are the place most sites collect personal data on purpose, so apply minimisation there first. Ask only for what you need to answer the enquiry. Label optional fields as optional or remove them. Put a short notice and a link to the privacy policy next to the submit button. For a plain contact form a notice is the usual pattern, not a consent tick, because replying is covered by another basis. Use a separate, unticked box only for something genuinely optional such as a newsletter, and keep it apart from the enquiry.

Then decide where entries live. Most form plugins store every entry in your database indefinitely and also email it to an inbox. Ask whether you need the stored copy at all. Check what the plugin you use offers: turning off entry storage, deleting entries after a set period, and not recording the sender’s IP address or user agent are the options that matter. Fluent Forms is one example of a plugin worth opening to see which of these it provides; look in its form settings, not its sales page. Also check three side effects. Spam protection that loads an external challenge sends visitor data to that provider and may set cookies, so disclose it and consider server-side or honeypot methods. File upload fields write to the uploads folder, so check who can reach those files. Notification emails move the data into mailboxes with their own retention.

Comments need similar attention. Core stores the commenter’s IP address and user agent, mainly to fight spam. You can keep that and say so, or shorten the IP before it is stored. The filter below uses core’s own anonymising function, at the cost of some accuracy for anti-spam services that rely on addresses. Core’s comment-form checkbox that remembers the commenter in a cookie is opt-in. Avatars send a hash of each email address to an external service, so turn them off if you do not need them.

add_filter( 'pre_comment_user_ip', function ( $ip ) {
    return wp_privacy_anonymize_ip( $ip );
} );

Accounts and orders follow the contract and legal-obligation bases: collect what you need to fulfil the order and keep what accounting law requires. Newsletters rest on consent in most setups. Record who agreed, when and to what wording, use a confirmation step if your national practice expects one, include an unsubscribe link in every message, and make sure unsubscribes reach every system that sends. Never import a purchased or scraped list. If your subscriber list lives in a plugin on your own server, you own its security as well as its compliance.

fluentforms.com
The Fluent Forms public home page with its logo, a navigation bar listing Pricing, Features, Templates, Integrations, Blog, Docs and Account, and a headline describing a form builder for WordPress.
The vendor page is only a starting point, because the retention and logging options that matter for personal data sit in the plugin’s own form settings.

Analytics: choosing how much you really need

Analytics is where privacy and curiosity collide. A typical analytics setup stores an identifier in the visitor’s browser, receives their IP address, and records which pages they view and what they do. That touches both rule sets at once: the cookie or storage rule asks for consent, and GDPR asks for a basis, a notice and a processor agreement if the vendor handles the data for you. The first question is not which tool to use but how much measurement you need.

Think in rungs. At the lowest, you use no analytics at all and rely on aggregate figures from search console and your host’s own statistics. Next comes measurement that runs on your own server, with shortened IP addresses, no cross-site identifier and nothing stored on the visitor’s device. Then hosted analytics, which usually sits behind a consent choice. At the top are advertising and remarketing pixels, which share data with advertising platforms and deserve the most caution. Which rungs can run without consent depends on your country’s regulator and on the exact configuration, so cookieless on a marketing page is a description of a feature, not a legal status. The questions that decide it are plain: does it store or read anything on the device, does the vendor use the data for its own purposes, where is it processed, how are IP addresses handled and how long is data kept?

Hosted tools bring a transfer question as well. In 2022 several national regulators concluded that particular setups of one popular hosted analytics service broke the rules on sending data to the United States, and the legal basis for those transfers has changed since. The lesson is not about one vendor. It is that the answer depends on configuration and date, so read the vendor’s current data processing terms, retention settings and subprocessor list instead of relying on a blog post, including this one.

Analytics plugins sit between your site and those services. The vendor page in the screenshot below lists GDPR among its feature headings, which is a statement about a product capability and not a ruling on your site. Still verify what the plugin does: how it outputs the tracking code, whether it waits for your consent banner, whether it can shorten IP addresses, and whether optional features tie visits to logged-in user IDs, which adds identifiers and deserves a second look. Exclude administrators and editors from tracking, since their visits are noise. Finally, apply minimisation to reports: switch off demographic and advertising features you do not use, and keep retention as short as your questions allow.

monsterinsights.com
The MonsterInsights home page headline for a WordPress analytics plugin, with a row of feature icons labelled Real-Time Analytics, E-Commerce Reports, GDPR Analytics, User Behavior Analytics, SEO Ranking Analytics and Over 100 Data Points.
A feature heading on a vendor page describes the product, while whether your own setup is lawful depends on consent, configuration, notices and agreements.

Embeds, fonts, CDNs and data leaving the EU

The least visible data flows on a WordPress site happen in the visitor’s browser. Whenever a page loads a font, script, video, map or widget from another domain, the visitor’s IP address and browser details reach that third party at load time, before anyone has chosen anything. Your WordPress admin never shows this. A German regional court decision in 2022 about fonts loaded from Google’s servers drew wide attention for exactly that reason, though regulators and courts differ, and the sensible response is the same everywhere: serve what you can yourself and ask before loading the rest.

Fonts are the easy win. Download the font files from a source whose licence allows it, upload the web font files to your site, declare them in CSS, and remove the external stylesheet call. Many themes and builders have a setting for loading fonts locally, so look there first.

@font-face {
  font-family: "ExampleSans";
  src: url("/wp-content/uploads/fonts/examplesans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

To find external calls, search the code for the domain you suspect. This command lists theme and plugin files that mention it. Page builders and customisers also store such references in the database, so run a database search too; WP-CLI has a db search command, and its help text shows the options for your version.

$ grep -rIl "fonts.googleapis.com" wp-content/themes wp-content/plugins

For embedded video, maps and social feeds, the usual pattern is a click-to-load placeholder that loads the third-party content only after the visitor asks for it. A privacy-enhanced video domain reduces what is stored but still contacts the provider on load, so verify its current behaviour. The Court of Justice held in 2019, in a case about a social plugin, that a site embedding a third-party button can share responsibility for the collection and transmission it triggers. Embeds are not simply the vendor’s problem.

A CDN or firewall in front of your site is a processor that sees every request, which is usually justified and needs an agreement. Under the rules on transfers outside the EEA, sending personal data to a country without an adequacy decision needs a safeguard such as standard contractual clauses. The EU and US framework adopted in 2023 covers certified US companies, but its status has been challenged, so verify it. Check where each vendor processes data, read subprocessor lists, and take legal advice on transfers.

How much a visitor exposes to third parties at page load

How to read this: each row is one option, and its dot shows where it sits between Stays on your server and Sent to third parties on load. Placement is an editorial judgement, not a measurement.

  1. 1Self-hosted fonts and scriptsNothing leaves your server
  2. 2Click-to-load video or mapNothing is sent until the click
  3. 3CDN or firewall in frontA processor that sees every request
  4. 4Externally loaded fonts or librariesIP address reaches the provider on load
  5. 5Embeds loaded on page viewVideo, maps and feeds contact their host at once
  6. 6Advertising and remarketing pixelsData is shared with ad platforms
These are editorial placements to compare options, not measurements, and each item still needs its own check.

Hosts, plugin vendors and data processing agreements

When another company handles personal data on your behalf, GDPR expects a written contract, usually called a data processing agreement. It must say what the processing is, set out the instructions you give, require confidentiality and security, control the use of subprocessors, oblige the vendor to help with requests and breaches, and say what happens to the data when you leave. You are also expected to choose vendors that can give adequate guarantees, which means doing some checking before you sign up, not after.

List the candidates from your data map: the host, email delivery service, newsletter or CRM platform, hosted form service, CDN or firewall, backup service, support chat, spam filter and analytics provider. Add the quiet ones. An image optimisation service may receive photographs of people, and an AI plugin that forwards visitors’ chat messages to a model provider is sending personal data to a processor, whether or not it feels like a vendor relationship.

Plugins deserve a careful distinction. A plugin that runs entirely on your server and stores data in your database does not send the author anything, so there is no agreement to sign with the developer, but you remain responsible for that data and its security. A plugin with a cloud component, a licence check that reports site details or a connected service is different: the vendor may be a processor, or a controller for what it collects. Read the plugin’s data and privacy statement, and decline optional usage tracking.

Most vendors publish a standard agreement in their legal pages, accepted online or countersigned on request. Check that it covers your plan, since some apply only to paid tiers, note the subprocessor list and how you are told of changes, and keep a dated copy. Freelancers and agencies with access to your site or exports are processors too and need a clause. A record of processing activities is the tidy home for all this. Smaller organisations have a limited exemption from keeping one, but it does not apply when processing is more than occasional, so a site with regular form and order data should expect to keep a simple record. Your data map is most of it.

Who plays which role

ControllerProcessorIndependent or joint controller
In one lineDecides why and how data is usedHandles data only on your instructionsDecides its own purposes, alone or with you
Typical examplesYou, the site ownerHost, email delivery, backup service, form or CRM servicePayment provider for its own checks, an ad or social widget
Paper to haveNotice, records, basis per purposeData processing agreementDepends on the arrangement, often a notice and sometimes a joint arrangement
Answers requestsYouHelps you, while you stay answerableEach for its own part
Check firstDo I know every purpose?Subprocessors, location, deletion on exitDoes it send data before consent?
Roles follow who decides the purpose of the processing, not who owns the software, so the same plugin can sit in different columns on different sites.

Requests from individuals and the WordPress privacy tools

People have rights over their data: to be told what you hold and get a copy, to have errors corrected, to have data erased in some cases, to restrict processing, to receive certain data in a portable format and to object. None is unlimited. Erasure yields to records you must keep by law, access must not expose other people’s data, and objection to direct marketing is the one you cannot refuse. You normally have one month to respond, extendable by up to two more months for complex or numerous requests, provided you tell the person within the first month. A request can arrive by any channel and need not mention GDPR, so publish a contact address and decide who watches it.

WordPress core gives administrators two tools under Tools: Export Personal Data and Erase Personal Data. You enter an email address, core sends the person a confirmation email, and once they confirm you can compile an export, or run the erasure. The export is a zip file with an index.html, and core deletes old export files after a short default period. The tools gather data only from core and from plugins that register an exporter or eraser. Core’s own coverage is limited, so after an erasure, run an export for the same address to see what remains. The request records also hold the person’s email address, so clear them out once you no longer need them.

That limit is the main point. The tools cannot see the copy in your mailbox, the contact in your newsletter service, entries in a form plugin that never registered, order data under your retention rules, server logs, support tickets or backups. A real request needs a written procedure that sweeps every place on your map. Core’s documentation notes that the erase tool does not touch backups and advises respecting erasures when you restore one, so keep a minimal record of erasures to repeat afterwards. Plugin developers can register their own handlers. Both are short.

add_filter( 'wp_privacy_personal_data_exporters', function ( $exporters ) {
    $exporters['my-plugin'] = array(
        'exporter_friendly_name' => 'My Plugin',
        'callback'               => 'my_plugin_export',
    );
    return $exporters;
} );

function my_plugin_export( $email_address, $page = 1 ) {
    // Look up rows for $email_address, then return one item per record.
    return array( 'data' => array(), 'done' => true );
}

add_filter( 'wp_privacy_personal_data_erasers', function ( $erasers ) {
    $erasers['my-plugin'] = array(
        'eraser_friendly_name' => 'My Plugin',
        'callback'             => 'my_plugin_erase',
    );
    return $erasers;
} );

function my_plugin_erase( $email_address, $page = 1 ) {
    // Delete rows for $email_address here.
    return array( 'items_removed' => false, 'items_retained' => false, 'messages' => array(), 'done' => true );
}

To see open requests from the command line, list the request records.

$ wp post list --post_type=user_request --post_status=request-pending,request-confirmed --fields=ID,post_title,post_name,post_status,post_date

Handling one request from arrival to close

On receiptLog the date, the channel and who received it
EarlyVerify identity proportionately, as WordPress does with its confirmation email
SearchSweep every system on your data map, not only WordPress
DecideCheck legal retention duties and other people’s data in the same records
Within one monthSend the data, confirm the erasure, or give reasons for refusing and mention the right to complain
If complexExtend by up to two further months, telling the person why within the first month
AfterwardsDelete export files, keep a minimal log and repeat erasures after any restore
The clock runs from receipt, so log the date and keep the verification step proportionate.

Retention, backups, security and breaches

WordPress keeps almost everything forever unless you tell it not to: comments, form entries, user accounts, logs. Storage limitation says the opposite, so set a retention period per data type and be ready to justify it. Illustrative examples, not recommendations: delete spam comments on a schedule, review closed enquiries after a fixed interval, remove accounts that never ordered, and rotate logs quickly. Legal duties override preferences, so keep invoices for the period your tax law requires. Also hunt for leftovers. Plugins you removed often leave tables and options behind, and old tables can hold years of personal data nobody remembers. This command deletes spam comments permanently; run it only after a backup.

$ wp comment delete $(wp comment list --status=spam --format=ids) --force

Backups are copies, so they need their own limit. Several regulators accept that you cannot always edit a backup the moment someone asks for erasure, provided you document the retention window, restrict access and make sure erased data is not restored into live use. Encrypt offsite copies. Staging and development copies deserve the same care: do not copy real personal data into them, or anonymise it, protect them with a login and delete them after use.

Security is judged by what is appropriate to the risk, with no fixed list. For WordPress the usual measures are HTTPS everywhere, timely updates to core, plugins and themes, removing unused plugins, least-privilege roles, two-factor sign-in for administrators and shop managers, tested backups and tight access to form entries and exports. One line in the configuration file stops file editing from the dashboard.

define( 'DISALLOW_FILE_EDIT', true );

A personal data breach is any breach of security that leads to accidental or unlawful destruction, loss, alteration or unauthorised disclosure of, or access to, personal data. A stolen laptop with exports counts, as does a list emailed to the wrong people or a public backup folder. If it is likely to result in a risk to people, you must notify the regulator without undue delay and, where feasible, within 72 hours of becoming aware of it. If the risk is high, tell the affected people too. Document every breach, including those you do not report. Know your regulator and rehearse the steps before you need them. This is orientation only, so take advice on any real incident.

First response to a suspected personal data breach

  1. Note the timeRecord when and how you became aware
  2. ContainCut access, rotate credentials, preserve evidence
  3. Assess riskWhat data, how many people, what harm is plausible
  4. Notify the regulatorWhere there is a risk, within 72 hours where feasible
  5. Tell individualsWhere the risk is high, without undue delay
  6. Record and fixLog every breach and close the cause
The 72-hour period runs from when you become aware, not from when the breach began.

An audit method, and when to ask a lawyer

Turn everything above into a repeatable audit you can run twice a year and whenever you add a tool. Work in order. First, list every domain, subdomain, staging copy and connected service in scope. Second, refresh the data map from the plugin list, the form settings and the vendor list. Third, load each key page type in a clean browser profile with no consent given, and write down every cookie, storage item and third-party request. Fourth, compare that observed reality with your privacy notice and fix whichever is wrong. Fifth, check each vendor has an agreement and a known data location. Sixth, run a test request end to end with an address you control. Seventh, compare your oldest records with your retention periods. Eighth, confirm security basics and that someone knows the breach steps. Record findings with an owner and a date, because showing your reasoning is part of accountability.

Add a gate before change: before installing any plugin, script or embed, ask what personal data it touches, where it goes, which role the vendor plays, whether it needs consent, what the notice must say and how long the data lives. Five answers take minutes and prevent most drift.

Know where self-service stops. Ask a qualified data protection lawyer, or consider a data protection officer, when you handle health, beliefs or other special-category data, serve children, run large-scale tracking or profiling, build advertising audiences, send data to vendors outside the EEA or cannot get a vendor to sign an agreement, operate across several countries, or when you are asked to carry out an impact assessment. Get advice at once on a regulator letter, a complaint, a claim or a suspected breach, because deadlines may already be running. Even on a plain site, a one-off professional read of your notice and records is a sensible safeguard for a risk you cannot judge alone.

Your national regulator publishes free guidance written for small organisations, and it is the best primary source. If you are asked how your site stands, the honest answer is not that it is compliant. It is that you have mapped, decided, documented and keep checking.

Checklist

  • Write down who is responsible for personal data on the site and a contact address for privacy requests.
  • Build a data map covering forms, comments, accounts, orders, newsletters, logs, uploads, email, backups and staging copies.
  • Assign a lawful basis to each purpose and record the reasoning, including a short balancing note for legitimate interests.
  • Publish a privacy notice that matches observed behaviour, link it in the footer and near every form, and keep dated versions.
  • Load key pages in a clean browser profile before consenting and list every cookie, storage item and third-party request.
  • Confirm non-essential scripts and embeds stay blocked until the visitor consents, and that refusing is as easy as accepting.
  • Check that a visible control lets visitors change or withdraw consent, and that each choice is stored with a timestamp.
  • Minimise form fields, decide whether entries need storing at all, and set a deletion period for those you keep.
  • Self-host fonts and scripts where practical, and use click-to-load for video, maps and social feeds.
  • List every vendor that handles data for you, keep a dated agreement and subprocessor list for each, and note where data is processed.
  • Write a request procedure that covers WordPress tools plus mailboxes, CRM, newsletter service, logs and backups.
  • Test the export and erase tools with an address you control, then export again to see what remains.
  • Set retention periods for logs, backups and old accounts, and remove tables left behind by uninstalled plugins.
  • Keep staging and development copies free of real personal data, protected by a login and deleted after use.
  • Apply updates promptly, remove unused plugins, enable two-factor sign-in for administrators and disable dashboard file editing.
  • Write a short breach procedure that names the regulator, the decision maker and the 72-hour starting point.
  • Review the whole setup twice a year and before adding any plugin, script or embed, and record the findings.

About this guide. This is general guidance written by WPresident Editorial from documentation and widely used practice. WPresident has not benchmarked the products or methods described. Interfaces and plan limits change, so check the vendor’s current documentation before you act. Not legal, tax or financial advice. See our editorial policy.

Frequently asked questions

Does GDPR apply to a small or non-commercial WordPress site?

It can. The regulation turns on whether you are established in the EU, offer goods or services to people there or monitor their behaviour, not on your size or whether you earn money. The exemption for purely personal or household activity is narrow and seldom covers a public site that collects visitor data. Take legal advice if the scope is unclear.

Is installing a cookie banner plugin enough?

No. A banner is one tool for one rule, the consent requirement for cookies and similar tracking. It does not create a privacy notice, choose lawful bases, sign vendor agreements, handle requests or set retention. It also only helps if it really blocks scripts until consent, which you must test in a browser. It is never proof that a site complies.

Do I need a banner if I only use essential cookies?

Strictly necessary storage is exempt from the consent requirement, so a site that sets only login, basket or security cookies may not need a consent choice for them. You still owe visitors a notice. The risk is that a plugin, embed or theme feature quietly sets something else, so check with a clean browser profile and your regulator's guidance on what counts as necessary.

Do I need consent for a contact form?

Usually not. Replying to someone who wrote to you is generally covered by another lawful basis, and the better practice is a short notice beside the submit button linking to your privacy policy. A tick box is for something optional, such as joining a newsletter, and should stay separate and unticked. Collect only the fields you need, and decide how long entries are kept.

Can I use Google Analytics?

There is no blanket yes or no. The answer depends on your configuration, your country's regulator, consent, your agreement with the vendor and the rules on transfers to the United States, which have changed over time. Regulators in several countries took action on particular setups in 2022. Read the vendor's current terms and your regulator's guidance.

Are IP addresses personal data?

They can be. An address can single a visitor out, especially when combined with other information, and European courts and regulators have treated them as personal data in many contexts. For planning, assume the IP addresses in your server logs, comments, form entries and security plugins are personal data, and apply a purpose, a basis and a retention period. Shortening them reduces risk without removing it.

Do I need a data processing agreement with my host and plugin vendors?

With any service that handles personal data on your behalf, such as your host, email delivery, backup, CRM or hosted form service, yes. Most publish a standard agreement you accept online or request. A plugin that runs only on your server and sends nothing to its developer typically does not involve one, but its cloud features, licence checks or connected services might. Read the vendor's privacy statement.

How long may I keep form entries and other data?

The law sets no single period. You must keep personal data no longer than necessary for the purpose, so choose a period per data type, write down why, and delete on schedule. Some records have legal minimums, such as invoices under tax law, which can override a shorter preference. Be ready to explain the reasoning.

How long do I have to answer a data access or erasure request?

Normally one month from receipt. For complex or numerous requests you may extend by up to two further months, but you must tell the person within the first month and explain why. Erasure is not absolute, because legal retention duties and other exceptions can apply. You may check identity in a proportionate way. Keep a log, and take advice before refusing a request.

What should I do if my site is breached?

Record when you became aware, contain the incident and preserve evidence, then assess the risk to the people affected. If the breach is likely to result in a risk to them, the regulator must usually be notified without undue delay and where feasible within 72 hours of awareness. If the risk is high, tell the people affected as well. Log every breach, and take legal advice on a real incident.

W
Written byWPresident EditorialThe WPresident editorial team. Every article says whether it comes from hands-on use or from documentation, and anything paid for is labelled.

Keep reading

Get the Monthly Launch Report

One email a month: the best of last month's articles, new reviews and what changed in WordPress, without the noise.

No spam. Unsubscribe in one click.

Signed and sealed,
The WPresident
↑↓ move↵ openEsc closeAll results