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.
Opens WPIDE on
Code
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 add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.