__( 'Flexible Shipping', 'flexible-shipping' ), 'type' => 'title', // Translators: link. 'description' => sprintf( __( 'See how to %1$sconfigure Flexible Shipping%2$s.', 'flexible-shipping' ), '', '' ), 'default' => '', ), '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', 'default' => 'taxable', 'desc_tip' => __( 'If you select to apply the tax, the plugin will use the tax rates defined in the WooCommerce settings at WooCommerce → Settings → Tax.', 'flexible-shipping' ), 'options' => array( 'taxable' => __( 'Taxable', 'flexible-shipping' ), 'none' => _x( 'None', 'Tax status', 'flexible-shipping' ), ), ), '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;