Skip to content

Instantly share code, notes, and snippets.

@jaygooby
Created November 4, 2011 13:51
Show Gist options
  • Save jaygooby/1339360 to your computer and use it in GitHub Desktop.
Save jaygooby/1339360 to your computer and use it in GitHub Desktop.
Always put a rel=0 attribute on Youtube embedded videos so that related videos aren't shown at the end
@twentyfortysix
Copy link

Thanks for that.. If might suggest one thing, then I would mention that the code "oembed_dataparse" runs before the content is cached
this: "embed_oembed_html" does it after it is rendered to the page. I think it is wort to mention that, otherwise people might think the code doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment