Added $this to the FREE filter to allow interaction with cart object

This commit is contained in:
Andrew Lazarus 2018-06-22 16:03:57 +02:00 committed by GitHub
parent b29036c08d
commit 7eac354d3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1405,7 +1405,7 @@ class WC_Cart extends WC_Legacy_Cart {
return $return;
}
} else {
return apply_filters( 'woocommerce_cart_shipping_cost_returns_free', __( 'Free!', 'woocommerce' ) );
return apply_filters( 'woocommerce_cart_shipping_cost_returns_free', __( 'Free!', 'woocommerce' ), $this );
}
}