Shortcode in Widget / Sidebar

To allow the shortcode to be executed if included in the widget area or in a sidebar, add the following line to your plugin file or in functions.php

add_filter('widget_text', 'do_shortcode');