Remove Jetpack’s Open Graph meta tags

If you’ve activated the Sharing or Publicize module, Jetpack will automatically add Open Graph meta tags to each one of your posts. These tags are used by Facebook to gather information about the post and build a post preview when one of your readers shares a post on Facebook.

If you already use another plugin to handle Open Graph meta tags on your site, we’ll automatically deactivate Jetpack’s Open Graph meta tags for you, to avoid any duplicates.

If, however, you’ve added these tags to your theme or built your own plugin, you’ll want to add the following code to your theme’s functions.php file or to your plugin, to deactivate Jetpack’s Open Graph meta tags:

add_filter( 'jetpack_enable_open_graph', '__return_false' );
This entry was posted in Code snippets, Tips & Tricks and tagged , , , . Bookmark the permalink.
  • Recent Comments

    Muş Emlak on Jetpack 4.1: Secure Sign On Im…
    Jakob Boman on Jetpack 4.1: Secure Sign On Im…
    Jeremy on Jetpack 4.1: Secure Sign On Im…
    frenckcoppola on Jetpack 4.1: Secure Sign On Im…
    Jeremy on Jetpack 4.1: Secure Sign On Im…
  • Archives

  • Enter your email address to follow this blog and receive notifications of new posts by email.

  • Install Jetpack to see our line-up of features.

    Install Jetpack Now

    Don’t need all Jetpack’s features? No problem. Only activate what you need!

    Follow

    Get every new post delivered to your Inbox.

    Join 56,617 other followers

    %d bloggers like this: