×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Joseph Riviello
Added: May 21, 2013 3:19 PM
Views: 15
Tags: no tags
  1. /** Enable shortcodes to be used in widgets */
  2. add_filter( 'widget_text', 'shortcode_unautop');
  3. add_filter( 'widget_text', 'do_shortcode');