Last active
September 11, 2022 09:56
-
-
Save terrytsang/e6cc57a231ca3fd55a5fb776ac7a927a to your computer and use it in GitHub Desktop.
Enable shortcode in 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 | |
//add thsi code into your theme functions.php | |
//Enable shortcode in text widget | |
add_filter('widget_text', 'do_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment