WC_Discounts::get_discounted_price
Get discounted price of an item without precision.
Method of the class: WC_Discounts{}
No Hooks.
Returns
float.
Usage
$WC_Discounts = new WC_Discounts(); $WC_Discounts->get_discounted_price( $item );
- $item(object) (required)
- Get data for this item.
Changelog
| Since 3.2.0 | Introduced. |
WC_Discounts::get_discounted_price() WC Discounts::get discounted price code WC 10.6.2
public function get_discounted_price( $item ) {
return wc_remove_number_precision_deep( $this->get_discounted_price_in_cents( $item ) );
}