Below is the code to enable the use of shortcodes in WordPress text widgets.
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 | |
//* Enable the use of shortcodes in text widgets | |
add_filter('widget_text', 'do_shortcode'); |