GDPR icon
Analytics & Tracking

GDPR hooks reference

  • By Trew Knowledge
  • v2.1.2
  • Updated

GDPR 2.1.2 has 3 actions and 21 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when GDPR fires an action
add_action( 'admin_access_data_extra_tables', function( $email ) {
	// Your code runs here.
}, 10, 1 );

// Change a value GDPR is about to use
add_filter( 'the_content', function( $post_content ) {
	// Change $post_content here.
	return $post_content;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • the_content

    filter
    public/partials/reconsent-modal.php line 71 · used in 2 places
    apply_filters( 'the_content', $page_obj->post_content );
  • admin/class-gdpr-admin.php line 479
    do_action( 'admin_access_data_extra_tables', $email );
  • includes/helper-functions.php line 101
    do_action( 'deprecated_function_run', $function, $replacement, $version );
  • public/class-gdpr-requests-public.php line 266
    apply_filters( 'gdpr_admin_notification_email', get_option( 'admin_email' ) );
  • includes/class-gdpr-email.php line 153
    apply_filters( 'gdpr_complaint_request_email_subject', esc_html__( 'Someone made complaint on behalf of your account.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 154
    apply_filters( 'gdpr_complaint_resolved_email_subject', esc_html__( 'Your request has been completed.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 157
    apply_filters( 'gdpr_data_breach_request_email_subject', esc_html__( 'Someone requested to send a data breach notification.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 158
    apply_filters( 'gdpr_data_breach_resolved_email_subject', esc_html__( 'Data Breach Notification.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 149
    apply_filters( 'gdpr_delete_request_email_subject', esc_html__( 'Someone requested to close your account.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 150
    apply_filters( 'gdpr_delete_resolved_email_subject', esc_html__( 'Your account has been closed.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 53
    apply_filters( 'gdpr_do_not_reply_address', 'noreply@' . $sitename );
  • includes/class-gdpr-email.php line 146
    apply_filters( 'gdpr_email_types', array( 'new-request' => apply_filters( 'gdpr_new_request_email_subject', esc_html__( 'GDPR Notification: There is a new request waiting to be reviewed.', 'gdpr' ) ), 'delete-request' => apply_filters( 'gdpr_delete_request_email_subject', esc_html__( 'Someone requested to close your account.', 'gdpr' ) ), 'delete-resolved' => apply_filters( 'gdpr_delete_resolved_email_subject', esc_html__( 'Your... );
  • includes/class-gdpr.php line 436
    apply_filters( 'gdpr_export_data_extra_tables', '', $email );
  • includes/class-gdpr-email.php line 155
    apply_filters( 'gdpr_export_data_request_email_subject', esc_html__( 'Someone requested to download your data.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 156
    apply_filters( 'gdpr_export_data_resolved_email_subject', esc_html__( 'Your request has been completed.', 'gdpr' ) );
  • admin/partials/settings.php line 424
    do_action( 'gdpr_extra_settings' );
  • public/class-gdpr-requests-public.php line 164
    apply_filters( 'gdpr_forgot_password_url', $email_args['forgot_password_url'] );
  • includes/class-gdpr-email.php line 148
    apply_filters( 'gdpr_new_request_email_subject', esc_html__( 'GDPR Notification: There is a new request waiting to be reviewed.', 'gdpr' ) );
  • public/class-gdpr-public.php line 156
    apply_filters( 'gdpr_privacy_bar_button_text', esc_html__( 'I Agree', 'gdpr' ) );
  • public/class-gdpr-public.php line 157
    apply_filters( 'gdpr_privacy_bar_display', $privacy_bar_enabled );
  • includes/class-gdpr-email.php line 151
    apply_filters( 'gdpr_rectify_request_email_subject', esc_html__( 'Someone requested that we rectify data of your account.', 'gdpr' ) );
  • includes/class-gdpr-email.php line 152
    apply_filters( 'gdpr_rectify_resolved_email_subject', esc_html__( 'Your request has been completed.', 'gdpr' ) );
  • admin/class-gdpr-admin.php line 317
    apply_filters( 'gdpr_tools_tabs', $tabs );
  • includes/class-gdpr-requests.php line 122
    apply_filters( 'gdpr_user_has_content', false );

Generated from GDPR's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: