Created
April 10, 2014 14:38
-
-
Save mauryaratan/10389249 to your computer and use it in GitHub Desktop.
Allow shortcodes to be used under text widget.
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 | |
// Filters that allow shortcodes in Text widgets | |
add_filter( 'widget_text', 'shortcode_unautop' ); | |
add_filter( 'widget_text', 'do_shortcode' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment