Skip to content

Instantly share code, notes, and snippets.

@rosshanney
Created February 10, 2013 10:13
Show Gist options
  • Save rosshanney/4749090 to your computer and use it in GitHub Desktop.
Save rosshanney/4749090 to your computer and use it in GitHub Desktop.
Ensure GCE tooltips work with async content
<?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