Created
August 30, 2017 14:30
-
-
Save vicskf/9c6ddfd100202c03cae6ba8a941ce301 to your computer and use it in GitHub Desktop.
TEC: Move the export events link to before the calendar page
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
| <?php | |
| /** | |
| * Move the export events link to before the calendar page | |
| */ | |
| function tribe_move_calendar_export_link() { | |
| if ( function_exists( 'tribe' ) ) { | |
| remove_action( 'tribe_events_after_footer', array( tribe( 'tec.iCal' ), 'maybe_add_link' ) ); | |
| add_action( 'tribe_events_before_header', array( tribe( 'tec.iCal' ), 'maybe_add_link' ), 11, 1 ); | |
| } | |
| } | |
| add_action( 'init', 'tribe_move_calendar_export_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment