Forked from elimn/tribe_remove_single_calendar_links.php
Created
February 14, 2017 23:21
-
-
Save cliffordp/f2d46c4996135c4b8f65aa583ee53861 to your computer and use it in GitHub Desktop.
MT | TEC | Remove the iCal and Google cal links from the single event page
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 | |
/** | |
* Removes the iCal and Google cal links from the single event page | |
*/ | |
function tribe_remove_single_calendar_links() { | |
if ( function_exists( 'tribe' ) ) { | |
remove_action( 'tribe_events_single_event_after_the_content', array( tribe( 'tec.iCal' ), 'single_event_links' ) ); | |
} | |
} | |
add_action( 'init', 'tribe_remove_single_calendar_links' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment