public static function shortcode($atts = array()) { $a = shortcode_atts(array('widget_type' => 'filter', 'attribute' => '', 'type' => 'checkbox', 'operator' => 'OR', 'title' => '', 'product_cat' => '', 'cat_propagation' => '', 'height' => 'auto', 'scroll_theme' => 'dark'), $atts); if (!$a['attribute'] || !$a['type']) { return false; } $BeRocket_AAPF_Widget = new BeRocket_AAPF_Widget(); $BeRocket_AAPF_Widget->widget(array(), $a); }