Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created December 5, 2012 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/4220232 to your computer and use it in GitHub Desktop.
Save billerickson/4220232 to your computer and use it in GitHub Desktop.
// Videos in Sidebar Widgets
global $wp_embed;
add_filter( 'widget_text', array( $wp_embed, 'run_shortcode' ), 8 );
add_filter( 'widget_text', array( $wp_embed, 'autoembed'), 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment