Ok. Figured it out! I added a function to the trigger, duh!
Here’s the code:
add_filter('wp_footer', 'ockmoa_fullcalendar_args', 100 );
function ockmoa_fullcalendar_args() {
?>
<script>
jQuery(document).on( 'wpfc_fullcalendar_args', function(e, data) {
data.eventRender = function(event, element) {
if( event.post_id > 0 && WPFC.wpfc_qtips == 1 ){
var event_data = { action : 'wpfc_qtip_content', post_id : event.post_id, event_id:event.event_id };
element.qtip({
hide:{
delay:250,
fixed:true
},
content:{
text : 'Loading...',
ajax : {
url : WPFC.ajaxurl,
type : "POST",
data : event_data
}
},
position : {
my: WPFC.wpfc_qtips_my,
at: WPFC.wpfc_qtips_at
},
style : { classes:WPFC.wpfc_qtips_classes }
});
}
};
});
</script>
<?php
}