Skip to content

Instantly share code, notes, and snippets.

@tacoverdo
Last active August 29, 2015 13:56
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 tacoverdo/8931647 to your computer and use it in GitHub Desktop.
Save tacoverdo/8931647 to your computer and use it in GitHub Desktop.
<?php
// do not copy the line above
/**
* Removes the twittercard-information from Jetpack
* Thus allows WordPress SEO to handle the twittercards
*/
function yst_remove_twittercard_info() {
remove_filter( 'jetpack_open_graph_tags', 'wpcom_twitter_cards_tags' );
remove_filter( 'jetpack_open_graph_tags', 'change_twitter_site_param' );
}
add_action( 'template_redirect', 'yst_remove_twittercard_info' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment