How to Show Only In-Stock Products in WooCommerce Filter Results
To make HUSKY always show only in-stock products in the WooCommerce filter results:
- open file functions.php of the current wordpress theme
- place there next code:
add_filter('woof_get_request_data', function ($data){ $data['stock'] = 'instock'; return $data; });