Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Last active August 29, 2015 14:21
Show Gist options
  • Save jesseeproductions/9b0a879803c995d6e10d to your computer and use it in GitHub Desktop.
Save jesseeproductions/9b0a879803c995d6e10d to your computer and use it in GitHub Desktop.
The Events Calendar - Add iCal Link Above Month View
/*
* The Events Calendar - Add iCal Link Above Month View
* @ Version 3.9.3
*/
add_action('tribe_events_before_header', 'ecp_add_month_ical');
function ecp_add_month_ical() {
if ( tribe_is_month() ) {
echo '
<div class="tribe-events-cal-links">';
echo '<a class="tribe-events-ical tribe-events-button" title="' . $title . '" href="' . esc_url( tribe_get_ical_link() ) . '">+ Export Month\'s Events</a>';
echo '</div>
<!-- .tribe-events-cal-links -->';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment