Skip to content

Instantly share code, notes, and snippets.

@frankschrijvers
Created February 27, 2016 11:34
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save frankschrijvers/8281fee3c2cae194c4a0 to your computer and use it in GitHub Desktop.
Allow the use of shortcodes in widget areas
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
//* Allow the use of shortcodes in widget areas
add_filter('widget_text', 'do_shortcode');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment