Last active
February 9, 2016 12:36
-
-
Save cliffordp/b0e5ece86040d9838f09 to your computer and use it in GitHub Desktop.
Sitewide override of the "Export Month's Events" sort of button link text (e.g. if all iCal links output 1 year's worth of events, like https://gist.github.com/cliffordp/ab1f7c4d95723ee6f892)
This file contains 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
<?php | |
// From https://gist.github.com/cliffordp/b0e5ece86040d9838f09 | |
// | |
// Sitewide override of the "Export Month's Events" sort of button link text | |
// e.g. if all iCal links output 1 year's worth of events, like https://gist.github.com/cliffordp/ab1f7c4d95723ee6f892 | |
// | |
// See /wp-content/plugins/the-events-calendar/src/functions/template-tags/ical.php for the filter | |
add_filter( 'tribe_events_ical_export_text', 'cliff_tribe_ical_export_custom_text' ); | |
function cliff_tribe_ical_export_custom_text() { | |
return 'Export events to iCal'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment