Show sold out badge on WooCommerce search result

Previously we have learned how to show sold out badge on WooCommerce store and archive pages. But that method does not work on search results. We have used woocommerce_before_shop_loop_item_title action hook for store page and category/archive pages. But this hook is not available on search result page. So we will… Read More »