WordPress / WordPress/plugin-check

Privacy: Check that plugins handling personal data call wp_add_privacy_policy_content()

Open
#1,249 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
362
Forks
126
Avg merge
1d 23h
Merged PRs (30d)
22

Description

Summary

The WordPress Plugin Handbook requires that every plugin which collects, uses, stores, or passes personal data to a third party should suggest privacy policy text to site administrators using wp_add_privacy_policy_content(). See: https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/

In practice the vast majority of plugins that handle personal data do not implement this, leaving site administrators without the information they need to write an accurate privacy policy.

What to check

Plugin Check should detect when a plugin appears to handle personal data — indicated by usage of functions or patterns such as:

  • wp_remote_post() / wp_remote_get() sending data to external URLs
  • setcookie() or $_COOKIE
  • $_POST / $_GET handling personal fields (email, name etc.)
  • Loading external scripts or pixels (see #1156 / #475)

...and warn if wp_add_privacy_policy_content() is not called anywhere in the plugin.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the WordPress Plugin Handbook guidance linked in the issue, then review the listed patterns: wp_remote_post(), wp_remote_get(), setcookie(), $_COOKIE, $_POST, $_GET, external scripts, and pixels. Done means Plugin Check identifies plugins that appear to handle personal data and warns when wp_add_privacy_policy_content() is not called anywhere.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.