I really am looking for this feature as well.
It would be great to have a filter on an advanced custom field.
Our scenario is: We need to disable products 2 days before the delivery date. To ensure that products can’t be ordered.
The calculation is as follows…
Monday orders will be delivered on Wednesday… Thus there is a 2 day gap.
Meaning that product should not be visible anymore on Tuesday.
I made an ACF to set the delivery date but it is impossible for now to use your timer plugin with that field.
I really hope this feature will be available soon. Because then we can automatically set this rule… Now we have to manually set the date for hundreds of products
Another option would be to have a check against the current date and add or subtract x amounts of days… That would also be very helpful…
As the calculation would be.
(pseudo code)
$today_date – 2 days = set this product invisible.
I took a look to the source code but its all too complicated for me to understand.
If there is an easy way to hide products with this calculation please let me know.
The function must run when someone visits the shop page…
Thanks for your consideration.