# Privacy Policy Link in the Site Footer

> Adds a link to the privacy policy page you set under Settings > Privacy at the bottom of every page, for themes that do not show it.

- Type: PHP
- Runs: Frontend only
- Category: [Privacy & Cookies](https://wpide.com/library/category/privacy/)
- Tags: privacy-policy, footer, links
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/privacy-policy-footer-link/

## Code

```php
add_action( 'wp_footer', function () {
    $link = get_the_privacy_policy_link( '<p class="wpide-privacy-link" style="text-align:center;font-size:14px;margin:1em 0;">', '</p>' );

    if ( $link ) {
        echo wp_kses_post( $link );
    }
}, 40 );
```

## Notes

Nothing is printed until a published privacy policy page is selected in Settings > Privacy.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Privacy Policy Link in the Site Footer" 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/
