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.


Top ↑

Return Return

(float)


Top ↑

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 ) );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.