# Data Retention Note on the Order Thank-You Page

> Adds a short note above the WooCommerce order confirmation telling customers how long their order data is kept and how to ask for a copy or deletion.

- Type: Universal
- Runs: Woocommerce before thankyou
- Category: [Privacy & Cookies](https://wpide.com/library/category/privacy/)
- Requires: WooCommerce
- Tags: woocommerce, retention, orders
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/privacy-woo-thankyou-retention-note/

## Code

```php
<p class="wpide-thankyou-privacy" style="font-size:.95em;padding:10px 14px;background:#f6f7f7;border-radius:6px;">
    We keep your order details for 7 years because tax law requires it. You can ask for a copy of your data or for anything else we hold about you to be deleted at any time<?php if ( get_privacy_policy_url() ) : ?> - see our <a href="<?php echo esc_url( get_privacy_policy_url() ); ?>">privacy policy</a><?php endif; ?>.
</p>
```

## Notes

Match the retention period to your WooCommerce privacy settings (WooCommerce > Settings > Accounts & Privacy).

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Data Retention Note on the Order Thank-You Page" in its snippet library and add it in one click; or create a new Universal snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
