WordPress at Your Fingertips
function is not described

WC_Cart::get_items_needing_shipping() protected WC 3.0.0

Get only items that need shipping.

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

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_items_needing_shipping();

Changelog

Since 3.0.0 Introduced.

Code of WC_Cart::get_items_needing_shipping() WC 5.6.0

protected function get_items_needing_shipping() {
	return array_filter( $this->get_cart(), array( $this, 'filter_items_needing_shipping' ) );
}