Last active
July 3, 2019 09:15
-
-
Save jeherve/9087431 to your computer and use it in GitHub Desktop.
[Jetpack] Deactivate Twitter Cards and / or Open Graph Meta tags.
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 | |
/* | |
* Plugin Name: Disable Jetpack Open Graph tags and Twitter Cards | |
* Plugin URI: http://wordpress.org/extend/plugins/jetpack/ | |
* Description: Disables Jetpack Open Graph tags | |
* Author: Jeremy Herve | |
* Version: 1.0 | |
* Author URI: http://jeremyherve.com | |
* 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