WC_Discounts::get_discounted_price( object $item )
Get discounted price of an item without precision.
Description Description
Parameters Parameters
- $item
-
(Required) Get data for this item.
Return Return
(float)
Source Source
File: includes/class-wc-discounts.php
public function get_discounted_price( $item ) { return wc_remove_number_precision_deep( $this->get_discounted_price_in_cents( $item ) ); }
Changelog Changelog
Version | Description |
---|---|
3.2.0 | Introduced. |