Allow shortcodes in WordPress widgets


/ Published in: PHP
Save to your folder(s)

If you want to be able to use shortcodes in WordPress widgets, place the snippet below into your functions.php, or custom_functions.php file


Copy this code and paste it in your HTML
  1. add_filter('widget_text', 'do_shortcode')

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.