19 lines
406 B
PHP
19 lines
406 B
PHP
<?php
|
|
|
|
if (! defined('ABSPATH')) {
|
|
exit;
|
|
}
|
|
|
|
/**
|
|
* 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 blocksy_companion_get_product_ids_on_sale() {
|
|
return apply_filters(
|
|
'blocksy:helpers:woo:on-sale-product-ids',
|
|
wc_get_product_ids_on_sale()
|
|
);
|
|
}
|