Last active
November 17, 2016 12:57
-
-
Save petersplugins/0f9dcc9adb4170835b2929b109984d40 to your computer and use it in GitHub Desktop.
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 | |
// This code snippet allows you to use shortcodes inside text widgets | |
// Some themes enable this feature, so maybe there's no need to do this yourself | |
// If your theme does not, this tiny code can do it | |
add_filter( 'widget_text', 'do_shortcode' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment