I need to remove one specific variable price from the price filter and for the WooCommerce order by price.
I have 4 variable product, and I don’t want to show one variable attribute that contains the price $495 for all products in the price filter.
I just want to hide this specific attribute so it will not be counted in the price filter as well as in the wordpress order by price.
Thank you.
You will need something like this:
If it doesn’t work as you want, you will need to fine tune conditionals inside the function, to feet your needs.
You have to add this code snippet in the
functions.php
file of your active theme (or better of your active child theme).