get_tax_refunded_for_item() public method

Get the refunded amount for a line item.
public get_tax_refunded_for_item ( integer $item_id, integer $tax_id, string $item_type = 'line_item' ) : double
$item_id integer ID of the item we're checking
$tax_id integer ID of the tax we're checking
$item_type string type of the item we're checking, if not a line_item
return double
示例#1
0
 /**
  * Test: get_tax_refunded_for_item
  */
 function test_get_tax_refunded_for_item()
 {
     $object = new WC_Order();
     $this->assertEquals(0, $object->get_tax_refunded_for_item(1, 1));
 }