WC_Cart_Totals::get_values_for_total( string $field )

Returns array of values for totals calculation.


Description Description


Parameters Parameters

$field

(Required) Field name. Will probably be total or subtotal.


Top ↑

Return Return

(array) Items object


Top ↑

Source Source

File: includes/class-wc-cart-totals.php

	protected function get_values_for_total( $field ) {
		return array_values( wp_list_pluck( $this->items, $field ) );
	}


Top ↑

User Contributed Notes User Contributed Notes

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