Skip to content

Instantly share code, notes, and snippets.

@gareth-gillman
Created June 16, 2016 20:22
Show Gist options
  • Save gareth-gillman/2b47e70aed5c72beddd4548bea0b2771 to your computer and use it in GitHub Desktop.
Save gareth-gillman/2b47e70aed5c72beddd4548bea0b2771 to your computer and use it in GitHub Desktop.
WordPress comments Oembed
add_filter( 'comment_text', array( $wp_embed, 'run_shortcode' ), 8 );
add_filter( 'comment_text', array( $wp_embed, 'autoembed'), 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment