WordPress at Your Fingertips
function is not described

WC_Order_Item::get_quantity() public WC 1.0

Get quantity.

{} It's a method of the class: WC_Order_Item{}

No Hooks.

Return

Int.

Usage

$WC_Order_Item = new WC_Order_Item();
$WC_Order_Item->get_quantity();

Code of WC_Order_Item::get_quantity() WC 5.6.0

public function get_quantity() {
	return 1;
}