Created
February 10, 2013 10:13
-
-
Save rosshanney/4749090 to your computer and use it in GitHub Desktop.
Ensure GCE tooltips work with async content
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: Ensure GCE tooltips work with async content | |
*/ | |
function gce_async_content_tooltips() { | |
?> | |
<script type="text/javascript"> | |
jQuery(document).ajaxSuccess(function(){ | |
if(typeof gce_tooltips == 'function'){ | |
gce_tooltips('.gce-has-events'); | |
} | |
}); | |
</script> | |
<?php | |
} | |
add_action( 'wp_footer', 'gce_async_content_tooltips' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment