Created
October 22, 2013 14:26
-
-
Save jeherve/7101650 to your computer and use it in GitHub Desktop.
[Jetpack] Remove Twitter Meta cards
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 | |
function jeherve_remove_tw_tags() { | |
remove_filter( 'jetpack_open_graph_tags', 'wpcom_twitter_cards_tags' ); | |
remove_filter( 'jetpack_open_graph_tags', 'change_twitter_site_param' ); | |
} | |
add_action( 'template_redirect', 'jeherve_remove_tw_tags' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment