Created
September 18, 2018 00:55
-
-
Save chrisdavidmiles/b2408b79d5c2f4a4db04fbb224ffec5c to your computer and use it in GitHub Desktop.
A filter to enable shortcodes inside text widgets in WordPress
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
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