Last active
August 29, 2015 13:56
-
-
Save tacoverdo/8931647 to your computer and use it in GitHub Desktop.
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
<?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