Skip to content

Instantly share code, notes, and snippets.

@mototeam
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mototeam/93aa797aefaf7f4ed3d1 to your computer and use it in GitHub Desktop.
Save mototeam/93aa797aefaf7f4ed3d1 to your computer and use it in GitHub Desktop.
MotoPress Copyright Proof Fix plugin
<?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