9

My copy of WordPress outputs two <link/> tags in the header of (nearly?) every page. They look like this.

<link rel="alternate" type="application/json+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fexample.com%2Fbust%2F" />
<link rel="alternate" type="text/xml+oembed" href="http://example.com/wp-json/oembed/1.0/embed?url=http%3A%2F%2Fexample.com%2Fbust%2F&#038;format=xml" />

What are these oembed links for? Do they need to be here for WordPress to do things? Or are they here so other sites can better consume my content? What would be the consequences if I removed them?

1 Answer 1

7

Those are links for the wordpress "self" oEmbed. It provides the URLs needed to enable embeding the content of the wordpress site in other sites and they are resuired for oEmbed Discover

You are right that they are for other sites to consume your content, and if you don't care about it, just remove it. IMHO it is noting bad by itself, but if you are dedicating time for some cleanup, you should probably clean them as well. https://wordpress.org/plugins/disable-embeds/

2
  • How do I know if the links for this wordpress "self" oEmbed are on my site? https://www.karelsantralservisii.com Commented Jan 25, 2021 at 21:41
  • @OzcanHAYDAROGLU View the html page source then search for wp-json/oembed
    – Mike
    Commented Feb 9, 2021 at 22:17

Not the answer you're looking for? Browse other questions tagged or ask your own question.