Skip to content

Instantly share code, notes, and snippets.



Last active Jul 3, 2019
What would you like to do?
[Jetpack] Deactivate Twitter Cards and / or Open Graph Meta tags.
* Plugin Name: Disable Jetpack Open Graph tags and Twitter Cards
* Plugin URI:
* Description: Disables Jetpack Open Graph tags
* Author: Jeremy Herve
* Version: 1.0
* Author URI:
* License: GPL2+
// Disable both Twitter Cards and OG tags
add_filter( 'jetpack_enable_open_graph', '__return_false', 99 );
// Disable only the Twitter Cards
add_filter( 'jetpack_disable_twitter_cards', '__return_true', 99 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.