__( 'Flexible Shipping', 'flexible-shipping' ), 'type' => 'title', 'description' => sprintf( __( 'See how to %sconfigure Flexible Shipping%s.', 'flexible-shipping' ), '', '' ), ), 'enabled' => array( 'title' => __( 'Enable/Disable', 'flexible-shipping' ), 'type' => 'checkbox', 'label' => __( 'Enable Flexible Shipping', 'flexible-shipping' ), 'default' => 'no', ), 'title' => array( 'title' => __( 'Shipping title', 'flexible-shipping' ), 'type' => 'text', 'description' => __( 'Visible only to admin in WooCommerce settings.', 'flexible-shipping' ), 'default' => __( 'Flexible Shipping', 'flexible-shipping' ), 'desc_tip' => true ), 'tax_status' => array( 'title' => __( 'Tax Status', 'flexible-shipping' ), 'type' => 'select', 'class' => 'wc-enhanced-select', 'default' => 'taxable', 'options' => array( 'taxable' => __( 'Taxable', 'flexible-shipping' ), 'none' => _x( 'None', 'Tax status', 'woocommerce' ) ) ), 'title_shipping_methods' => array( 'title' => __( 'Shipping Methods', 'flexible-shipping' ), 'type' => 'title_shipping_methods', 'description' => '', ), 'shipping_methods' => array( 'title' => __( 'Shipping Methods', 'flexible-shipping' ), 'type' => 'shipping_methods', 'desc_tip' => true ), ); if ( version_compare( WC()->version, '2.6' ) >= 0 && $this->get_option( 'enabled', 'yes' ) == 'yes' ) { unset( $settings['enabled'] ); } return $settings;