# Add Your Own Section to the Privacy Policy Guide

> Adds a suggested paragraph about your custom code (such as analytics, embeds or contact forms) to the Privacy Policy Guide under Settings > Privacy, ready to copy into your policy.

- Type: PHP
- Runs: Admin only
- Category: [Privacy & Cookies](https://wpide.com/library/category/privacy/)
- Tags: privacy-policy, gdpr, settings
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/privacy-policy-guide-text/

## Code

```php
// Heading and suggested policy text.
$wpide_policy_name = 'Site customizations';
$wpide_policy_text = '<p>We use privacy-friendly analytics that do not set cookies or store your IP address.</p>'
    . '<p>Embedded videos and maps only load after you click them, so the provider does not receive data before you choose to watch or view.</p>'
    . '<p>Messages sent through our contact form are emailed to us and deleted from our inbox after 12 months.</p>';

add_action( 'admin_init', function () use ( $wpide_policy_name, $wpide_policy_text ) {
    if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
        wp_add_privacy_policy_content( $wpide_policy_name, wp_kses_post( wpautop( $wpide_policy_text, false ) ) );
    }
} );
```

## Notes

Edit the text to describe what your site really collects; the guide only suggests content and does not change your policy page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Add Your Own Section to the Privacy Policy Guide" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
