[Documentation](https://groundhogg.io/documentation/) » [Action Hooks](https://groundhogg.io/documentation/#doc-action-hooks)

# groundhogg/preferences/download_profile

Published Wednesday, June 10, 2026 · Last updated Wednesday, June 10, 2026

Fires when a contact requests a download of their personal data from the preferences page. Use this to include your extension’s data in the GDPR data export.

```

do_action( 'groundhogg/preferences/download_profile', $contact );
```

You will receive the `Contact` object.

## Example

```

add_action( 'groundhogg/preferences/download_profile', 'my_extension_add_export_data' );

/**
 * Include extension data in the contact's GDPR data download.
 *
 * @param \Groundhogg\Contact $contact
 *
 * @return void
 */
function my_extension_add_export_data( $contact ) {
    $data = my_extension_get_contact_data( $contact->get_id() );

    if ( empty( $data ) ) {
        return;
    }

    echo 'My Extension Data';
    foreach ( $data as $key => $value ) {
        echo '';
    }
    echo '' . esc_html( $key ) . '' . esc_html( $value ) . '';
}
```
