Created
January 22, 2015 00:55
-
-
Save jesseeproductions/f55cafe2bccda4998bc0 to your computer and use it in GitHub Desktop.
Hide JetPack Related Events on the Events Calendar Posts
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
function jetpackme_no_related_posts( $options ) { | |
if ( is_singular( 'tribe_events' ) ) { | |
$options['enabled'] = false; | |
} | |
return $options; | |
} | |
add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_no_related_posts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment