diff --git a/includes/shipping/flat-rate/includes/settings-flat-rate.php b/includes/shipping/flat-rate/includes/settings-flat-rate.php index 4ad7fa76ddf..2ce4467c074 100644 --- a/includes/shipping/flat-rate/includes/settings-flat-rate.php +++ b/includes/shipping/flat-rate/includes/settings-flat-rate.php @@ -100,7 +100,7 @@ if ( WC()->shipping->get_shipping_classes() ) { ); } -if ( $this->get_option( 'options', false ) ) { +if ( apply_filters( 'woocommerce_enable_deprecated_additional_flat_rates', $this->get_option( 'options', false ) ) ) { $settings[ 'additional_rates' ] = array( 'title' => __( 'Additional Rates', 'woocommerce' ), 'type' => 'title',