Skip to content

Instantly share code, notes, and snippets.

@wokamoto
Last active December 11, 2015 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wokamoto/4657061 to your computer and use it in GitHub Desktop.
Save wokamoto/4657061 to your computer and use it in GitHub Desktop.
[WordPress] Jetpack プラグインに OGP タグを書き出させないようにする方法
<?php
add_filter( 'jetpack_enable_opengraph', '__return_false', 11 );
// または
add_action( 'plugins_loaded', function(){
remove_action( 'wp_head', 'jetpack_og_tags' );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment