WordPress includes Privacy and GDPR settings. What is their main purpose?
Think about what GDPR is about and what WordPress needs to help with.
WordPress's Privacy and GDPR settings help site owners manage user data and privacy policies to comply with data protection laws like GDPR.
In WordPress, you can select a page as your Privacy Policy page under Privacy settings. What does WordPress do with this page?
Think about where users might need to see the privacy policy.
When a Privacy Policy page is set, WordPress adds a link to it on login and registration forms to inform users about data handling.
WordPress allows users to request erasure of their personal data. What happens in WordPress when such a request is processed?
Consider what GDPR requires about data erasure.
Under GDPR, users can request their personal data be erased. WordPress processes this by deleting the data and confirming the action.
Choose the correct code snippet that adds a filter to modify the privacy policy content in WordPress.
Remember the WordPress function to add filters and the exact hook name.
WordPress uses add_filter() to modify content. The correct hook for privacy policy content is 'wp_privacy_policy_content'.
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);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);Check the number of parameters the hook provides versus the function's parameters.
The 'wp_privacy_personal_data_export_email' action passes three parameters, but the function only accepts two, so the email is not sent properly.