Tribe__Tickets_Plus__Commerce__WooCommerce__Orders__Table::item_get_discount( $item )

Get the amount of the discount to be applied


Parameters

$item

(Required) The line item with the data to process the order


Top ↑

Return

(float)


Top ↑

Source

File: src/Tribe/Commerce/WooCommerce/Orders/Table.php

	public static function item_get_discount( $item ) {
		return (float) $item['subtotal'] - (float) $item['total'];
	}

Top ↑

Changelog

Changelog
Version Description
4.7.3 Introduced.