How to use:
- Paste the code in your theme's functions.php
- Change 'kleur' with your filter-name
See Demo
IMPORTANT: Uncheck 'Hide out of stock items from the catalog' (Woocommerce -> Settings -> Products -> Stock)
Display 'Out of stock' when filtering variable products on archive/catalog pages
PHP
How to use:
See Demo
IMPORTANT: Uncheck 'Hide out of stock items from the catalog' (Woocommerce -> Settings -> Products -> Stock)