WordPress Function to Enable shortcodes in widgets

Enable shortcodes in widgets

// shortcode in widgets
if ( !is_admin() ){
    add_filter('widget_text', 'do_shortcode', 11);
}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *