Merge pull request #8615 from franticpsyx/additional-shipping-methods-filter
[2.4] Filter to enable deprecated addon rates
This commit is contained in:
commit
4ff87d26f7
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue