Skip to content

Instantly share code, notes, and snippets.

@jesseeproductions
Created January 22, 2015 00:55
Show Gist options
  • Save jesseeproductions/f55cafe2bccda4998bc0 to your computer and use it in GitHub Desktop.
Save jesseeproductions/f55cafe2bccda4998bc0 to your computer and use it in GitHub Desktop.
Hide JetPack Related Events on the Events Calendar Posts
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