Skip to content

Instantly share code, notes, and snippets.

@alaasalama
Created February 20, 2019 23:26
Show Gist options
  • Save alaasalama/f13772b92ab74920f23ba37cf7063993 to your computer and use it in GitHub Desktop.
Save alaasalama/f13772b92ab74920f23ba37cf7063993 to your computer and use it in GitHub Desktop.
show event's recurrence description
function show_recurrence_description() {
if (is_event()) {
?>
<script type="text/javascript">
// your javscript code goes here
jQuery( document ).ready(function() {
jQuery('.tribe-events-event-body').clone().insertAfter('.recurringinfo')
});
</script>
<?php
}
}
add_action('wp_head', 'show_recurrence_description');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment