/* * Usage * First Configure settings in config -> settings * return [ // Extension Config 'meta' => [ 'name' => esc_html__('Wp Shortcode','shopready-elementor-addon'), 'description' => esc_html__('Wp Shortcode use for base widget setting that can run any editor','shopready-elementor-addon'), 'author' => 'quomodosoft' ], 'widgets' => [ 'shop_ready_wc_order' => [ 'name' => esc_html__('WooCommerce Order','shopready-elementor-addon'), 'category' => ['Account','Checkout'], // configure defaults settings otherwise will not works 'defaults' => [ 'foo' => 'helo', 'bar' => 'bar' ], ], ], */ /* 2nd * Create widget class * must implement view metthod with 2 args * must create view folder */ settings; include( plugin_dir_path( __FILE__ ) . 'view/order.php'); unset($settings); } }