add function arguments to the filter to give more context when filter is applied

This commit is contained in:
Dwain Maralack 2016-11-09 12:48:26 +02:00
parent 3a2ebb854d
commit 5f87161c06
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 );
}
/*