Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Last active May 26, 2018 19:05
Show Gist options
  • Save BinaryMoon/1d051f2e8320036a16db112756633736 to your computer and use it in GitHub Desktop.
Save BinaryMoon/1d051f2e8320036a16db112756633736 to your computer and use it in GitHub Desktop.
A simple WordPress plugin that changes the privacy policy link to point to a specific url. Perfect for theme demo sites. Just add it to your mu-plugins directory.
<?php
/**
* Plugin Name: Enable Privacy Link
* Plugin URI: https://prothemedesign.com
* Description: Enable a privacy policy link and point it to another url.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*
* @package ptd
*/
function ptd_privacy_policy_url() {
return 'https://prothemedesign.com/privacy-policy/';
}
add_filter( 'privacy_policy_url', 'ptd_privacy_policy_url' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment