For shipping item, the value of the get_tax_class() method is "inherit". Sending this string as the tax class to the get_rates() method will return an empty array instead of returning taxes correctly.
This shipping row indicates the tax rate and it is not divided in the same way as the other rows:
For shipping item, the value of the
get_tax_class()
method is "inherit". Sending this string as the tax class to theget_rates()
method will return an empty array instead of returning taxes correctly.This shipping row indicates the tax rate and it is not divided in the same way as the other rows: