Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chuckreynolds/5536660 to your computer and use it in GitHub Desktop.
Save chuckreynolds/5536660 to your computer and use it in GitHub Desktop.
Enable oEmbed functionality in WordPress text widgets
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