Skip to content

Implement GDPR compliance for contact form#284

Draft
Copilot wants to merge 7 commits into
developfrom
copilot/make-wedocs-gpdr-compliant
Draft

Implement GDPR compliance for contact form#284
Copilot wants to merge 7 commits into
developfrom
copilot/make-wedocs-gpdr-compliant

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 22, 2026

weDocs contact form collects user data (name, email, IP) without consent mechanism, violating GDPR requirements for EU operations.

Changes

  • Contact form: Added mandatory consent checkbox informing users data is collected but not stored, only attached to admin email
  • Validation: Server-side check for consent before processing (includes/Ajax.php)
  • IP customization: New wedocs_email_feedback_author_line filter hook enables removing, anonymizing, or customizing IP in feedback emails

Filter Usage

Remove IP entirely:

add_filter( 'wedocs_email_feedback_author_line', function( $author_line, $author ) {
    return sprintf( 'Author: %s', $author );
}, 10, 2 );

Anonymize IPv4:

add_filter( 'wedocs_email_feedback_author_line', function( $author_line, $author, $ip_address ) {
    if ( filter_var( $ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 ) ) {
        $ip_parts = explode( '.', $ip_address );
        $ip_parts[3] = '0';
        $ip_address = implode( '.', $ip_parts );
    }
    return sprintf( 'Author: %s (IP: %s)', $author, $ip_address );
}, 10, 3 );

See GDPR-COMPLIANCE.md for complete documentation and recommendations.

Original prompt

This section details on the original issue you should resolve

<issue_title>Make wedocs GPDR compilant</issue_title>
<issue_description>wedocs just have 2 things to do to make it GPDR compilant

First, add a check box on the contact form letting know to the user that his information won't be saved (check boxes are required on any form with GPDR)

And for last thing, you can make threechanges:

  1. Inform to the users on the contact checkbox that his IP will be collected and will be attached to the email
  2. Remove the IP
  3. Add a filter to the email body on the "Author (IP)" line to let override it

Meet the GPDR requirements is mandatory to operate with EU users so please, could you consider this changes?</issue_description>

Comments on the Issue (you are @copilot in this section)

@Rubaiyat-E-Mohammad Please have a look @anik-fahmid vai

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 4 commits January 22, 2026 12:37
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Co-authored-by: iftakharul-islam <88052038+iftakharul-islam@users.noreply.github.com>
Copilot AI changed the title [WIP] Make wedocs GPDR compliant by updating contact form Implement GDPR compliance for contact form Jan 22, 2026
@sapayth sapayth force-pushed the copilot/make-wedocs-gpdr-compliant branch from 2128061 to 510cfd8 Compare May 4, 2026 20:20
@sapayth sapayth force-pushed the copilot/make-wedocs-gpdr-compliant branch from e24c7e5 to 47f6804 Compare May 17, 2026 18:51
@arifulhoque7 arifulhoque7 force-pushed the copilot/make-wedocs-gpdr-compliant branch from ad29963 to a65ec11 Compare May 18, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make wedocs GPDR compilant

3 participants