Last active
May 26, 2018 19:05
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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