Merge pull request #8615 from franticpsyx/additional-shipping-methods-filter

[2.4] Filter to enable deprecated addon rates
This commit is contained in:
Claudio Sanches 2015-07-20 12:56:18 -03:00
commit 4ff87d26f7
1 changed files with 1 additions and 1 deletions

View File

@ -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',