Last active
November 3, 2016 01:03
-
-
Save mrfoxtalbot/c53f1f6550e091e43ce6432f0467468e to your computer and use it in GitHub Desktop.
Enable shortcodes in widget titles and content 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
// Enable shortcodes in widgets | |
add_filter('widget_title', 'do_shortcode'); | |
add_filter('widget_text', 'do_shortcode'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Via: https://carriedils.com/extend-wordpress-widgets-without-plugin/