Last active
August 29, 2015 14:21
-
-
Save jesseeproductions/9b0a879803c995d6e10d to your computer and use it in GitHub Desktop.
The Events Calendar - Add iCal Link Above Month View
This file contains hidden or 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
/* | |
* 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