Merge pull request #12287 from woocommerce/add-get-formatted-order-total-filter-paramas-and-docblock

Add more arguments to filter woocommerce_get_formatted_order_total
This commit is contained in:
Claudio Sanches 2016-11-09 10:50:43 -02:00 committed by GitHub
commit 3b147be755
1 changed files with 9 additions and 1 deletions

View File

@ -230,7 +230,15 @@ class WC_Order extends WC_Abstract_Order {
$formatted_total .= $tax_string;
}
return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this );
/**
* Filter WooCommerce formatted order total
*
* @param string $formatted_total
* @param $order,
* @param string $tax_display,
* @param bool $display_refunded
*/
return apply_filters( 'woocommerce_get_formatted_order_total', $formatted_total, $this, $tax_display, $display_refunded );
}
/*