Last active
August 29, 2015 14:16
-
-
Save mototeam/93aa797aefaf7f4ed3d1 to your computer and use it in GitHub Desktop.
MotoPress Copyright Proof Fix plugin
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: MotoPress Copyright Proof Fix | |
Plugin URI: http://www.getmotopress.com/ | |
Description: Disable Copyright Proof plugin (frustrate_copy.js) in MotoPress visual editor | |
Version: 1.0 | |
Author: MotoPress | |
Author URI: http://www.getmotopress.com/ | |
*/ | |
if (isset($_GET['motopress-ce']) && $_GET['motopress-ce'] == 1) { | |
add_action( 'init' , 'motopress_copyright_proof_fix'); | |
} | |
function motopress_copyright_proof_fix() { | |
remove_action("wp_head", "dprv_head"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment