Created
January 24, 2017 04:52
-
-
Save elimn/2aa55ee8e6a926d27cf6e693bc811217 to your computer and use it in GitHub Desktop.
MT | TEC | Remove link to a recurring event's RSS feed from the <head>
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 | |
/** | |
* Removes link to a recurring event's RSS feed from the <head> | |
*/ | |
function tribe_remove_recurring_feed() { | |
if ( tribe_is_recurring_event() ) { | |
remove_action( 'wp_head', 'feed_links_extra', 3 ); | |
} | |
} | |
add_action( 'template_redirect', 'tribe_remove_recurring_feed' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment