Created
December 4, 2012 20:52
-
-
Save rosshanney/4208540 to your computer and use it in GitHub Desktop.
Removes GCE tooltip functionality
This file contains 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: Remove GCE tooltip functionality | |
*/ | |
function gce_remove_qtip() { | |
wp_dequeue_script( 'gce_jquery_qtip' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'gce_remove_qtip', 99 ); | |
function gce_prevent_qtip_error() { | |
?> | |
<script type="text/javascript">jQuery.fn.qtip = function(){}</script> | |
<?php | |
} | |
add_action( 'wp_head', 'gce_prevent_qtip_error' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment