Automattic\WooCommerce\Blocks\BlockTypes

ProductQuery::get_on_sale_products_query()privateWC 1.0

Return a query for on sale products.

Method of the class: ProductQuery{}

No Hooks.

Return

Array.

Usage

// private - for code of main (parent) class only
$result = $this->get_on_sale_products_query();

ProductQuery::get_on_sale_products_query() code WC 9.6.0

private function get_on_sale_products_query() {
	return array(
		'post__in' => wc_get_product_ids_on_sale(),
	);
}