Bird
Raised Fist0
Wordpressframework~20 mins

Privacy and GDPR settings in Wordpress - Practice Problems & Coding Challenges

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Challenge - 5 Problems
🎖️
Privacy and GDPR Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:00remaining
What is the main purpose of WordPress's Privacy and GDPR settings?

WordPress includes Privacy and GDPR settings. What is their main purpose?

ATo help website owners comply with data protection laws by managing user data and privacy policies.
BTo improve website speed by caching user data.
CTo backup the website database daily.
DTo automatically translate website content into multiple languages.
Attempts:
2 left
💡 Hint

Think about what GDPR is about and what WordPress needs to help with.

component_behavior
intermediate
1:00remaining
What happens when you set a Privacy Policy page in WordPress?

In WordPress, you can select a page as your Privacy Policy page under Privacy settings. What does WordPress do with this page?

AWordPress deletes all other pages except the Privacy Policy page.
BWordPress disables comments on this page only.
CWordPress sends an email to all users with the Privacy Policy content.
DWordPress automatically adds a link to this page in the login and registration forms for users to read.
Attempts:
2 left
💡 Hint

Think about where users might need to see the privacy policy.

state_output
advanced
1:30remaining
What is the effect of enabling 'Erase Personal Data' requests in WordPress?

WordPress allows users to request erasure of their personal data. What happens in WordPress when such a request is processed?

AWordPress deletes the user's personal data from the database and sends a confirmation email.
BWordPress archives the user's data but does not delete it.
CWordPress ignores the request and keeps the data.
DWordPress exports the user's data but does not delete it.
Attempts:
2 left
💡 Hint

Consider what GDPR requires about data erasure.

📝 Syntax
advanced
1:30remaining
Which WordPress function correctly registers a privacy policy content filter?

Choose the correct code snippet that adds a filter to modify the privacy policy content in WordPress.

Aadd_action('wp_privacy_policy_content', 'custom_privacy_content');
Badd_filter('wp_privacy_policy_content', 'custom_privacy_content');
Cregister_filter('wp_privacy_policy_content', 'custom_privacy_content');
Dadd_filter('privacy_policy_content', 'custom_privacy_content');
Attempts:
2 left
💡 Hint

Remember the WordPress function to add filters and the exact hook name.

🔧 Debug
expert
2:00remaining
Why does this WordPress GDPR data export code fail to send the email?

Review the code below that tries to send a data export email. Why does it fail?

function send_export_email($email, $export_link) {
  wp_mail($email, 'Your Data Export', 'Download here: ' . $export_link);
}

add_action('wp_privacy_personal_data_export_email', 'send_export_email', 10, 3);
Wordpress
function send_export_email($email, $export_link) {
  wp_mail($email, 'Your Data Export', 'Download here: ' . $export_link);
}

add_action('wp_privacy_personal_data_export_email', 'send_export_email', 10, 3);
AThe email address variable is misspelled inside the function.
BThe function is not hooked to any WordPress action.
CThe action hook passes three parameters, but the function only accepts two, causing a mismatch.
DThe wp_mail function is deprecated and cannot be used.
Attempts:
2 left
💡 Hint

Check the number of parameters the hook provides versus the function's parameters.

Practice

(1/5)
1. What is the main purpose of the Privacy and GDPR settings in WordPress?
easy
A. To speed up website loading times
B. To protect user data and ensure legal compliance
C. To improve SEO rankings automatically
D. To change the website's theme colors

Solution

  1. Step 1: Understand GDPR and Privacy settings

    These settings help protect user personal data and comply with laws like GDPR.
  2. Step 2: Identify the main goal

    The goal is to keep user data safe and make the site legal, not to affect speed or design.
  3. Final Answer:

    To protect user data and ensure legal compliance -> Option B
  4. Quick Check:

    Privacy and GDPR = Protect data [OK]
Hint: Privacy settings = user data protection and legal rules [OK]
Common Mistakes:
  • Confusing privacy with site speed
  • Thinking GDPR changes design
  • Assuming it improves SEO automatically
2. Which WordPress menu path leads you to the Privacy settings page?
easy
A. Plugins > Privacy
B. Appearance > Privacy
C. Settings > Privacy
D. Tools > Privacy

Solution

  1. Step 1: Recall WordPress menu structure

    Privacy settings are found under the main Settings menu, not Appearance, Tools, or Plugins.
  2. Step 2: Confirm correct menu path

    Settings > Privacy is the correct path to access privacy options.
  3. Final Answer:

    Settings > Privacy -> Option C
  4. Quick Check:

    Privacy under Settings = True [OK]
Hint: Privacy is always under Settings in WordPress [OK]
Common Mistakes:
  • Looking under Appearance or Plugins
  • Confusing Tools with Settings
  • Assuming Privacy is a separate top-level menu
3. What happens when you select a Privacy Policy page in WordPress settings?
medium
A. The Privacy Policy page is hidden from search engines
B. The selected page content is deleted
C. Users cannot access the Privacy Policy page
D. WordPress automatically adds a link to the Privacy Policy in the footer

Solution

  1. Step 1: Understand Privacy Policy page role

    Selecting a page tells WordPress which page shows your privacy info.
  2. Step 2: Identify WordPress behavior

    WordPress adds a link to this page in the footer automatically for user access.
  3. Final Answer:

    WordPress automatically adds a link to the Privacy Policy in the footer -> Option D
  4. Quick Check:

    Privacy page linked in footer = True [OK]
Hint: Selecting Privacy page adds footer link automatically [OK]
Common Mistakes:
  • Thinking page content is deleted
  • Believing page becomes inaccessible
  • Assuming page is hidden from search engines
4. You added a GDPR consent plugin but users report the consent banner does not show. What is the likely cause?
medium
A. The plugin is not activated or configured properly
B. WordPress does not support GDPR plugins
C. The website theme disables all banners
D. Users have JavaScript disabled, so banner never shows

Solution

  1. Step 1: Check plugin activation and settings

    If the banner does not show, the plugin might be inactive or missing configuration.
  2. Step 2: Evaluate other options

    WordPress supports GDPR plugins, themes usually don't block banners fully, and JavaScript disabled is rare.
  3. Final Answer:

    The plugin is not activated or configured properly -> Option A
  4. Quick Check:

    Plugin active and configured = Banner shows [OK]
Hint: Check plugin activation first if banner missing [OK]
Common Mistakes:
  • Assuming WordPress blocks GDPR plugins
  • Blaming theme without testing
  • Ignoring plugin settings
5. You want to allow users to request their personal data export and deletion easily on your WordPress site. Which approach best achieves this?
hard
A. Use WordPress built-in tools and a GDPR plugin that adds user data request forms
B. Manually email users their data when requested
C. Disable all cookies to avoid storing data
D. Hide the Privacy Policy page to reduce user questions

Solution

  1. Step 1: Identify WordPress GDPR tools

    WordPress has built-in tools for data export and erasure requests.
  2. Step 2: Combine with plugins for user forms

    Plugins can add easy-to-use forms for users to request their data.
  3. Step 3: Evaluate other options

    Manual emails are slow, disabling cookies breaks site, hiding policy is illegal.
  4. Final Answer:

    Use WordPress built-in tools and a GDPR plugin that adds user data request forms -> Option A
  5. Quick Check:

    Built-in tools + plugin = Best user data control [OK]
Hint: Combine WordPress tools with GDPR plugins for requests [OK]
Common Mistakes:
  • Thinking manual emails are enough
  • Disabling cookies breaks site function
  • Hiding privacy info is illegal