Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chaselivingston/5626d3d1e363d28fc04c067685929f74 to your computer and use it in GitHub Desktop.
Save chaselivingston/5626d3d1e363d28fc04c067685929f74 to your computer and use it in GitHub Desktop.
if ( is_singular( 'tribe_events' ) ) {
function jetpackme_remove_rp() {
if ( class_exists( 'Jetpack_RelatedPosts' ) ) {
$jprp = Jetpack_RelatedPosts::init();
$callback = array( $jprp, 'filter_add_target_to_dom' );
remove_filter( 'the_content', $callback, 40 );
}
}
add_filter( 'wp', 'jetpackme_remove_rp', 20 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment