WC_Discounts::filter_products_with_price( object $item )

Filter out all products which have been fully discounted to 0.


Description Description

Used as array_filter callback.


Parameters Parameters

$item

(Required) Get data for this item.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-discounts.php

	protected function filter_products_with_price( $item ) {
		return $this->get_discounted_price_in_cents( $item ) > 0;
	}

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.