<?php

/**
 * Get product IDs that are on sale.
 *
 * Uses WooCommerce's wc_get_product_ids_on_sale() but allows filtering
 * for compatibility with dynamic pricing plugins like Advanced Dynamic Pricing.
 */
function blc_get_product_ids_on_sale() {
	return apply_filters(
		'blocksy:helpers:woo:on-sale-product-ids',
		wc_get_product_ids_on_sale()
	);
}
