Created
May 11, 2013 12:20
-
-
Save remkus/5559820 to your computer and use it in GitHub Desktop.
Allow oEmbed in textwidgets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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