Hello!
I need to add a stock status badge (“In stock”, “On backorder”, “Out of stock”) to:
product thumbnails in the shop loop
the single product gallery
I want the badge to appear inside the same .product-labels container that WoodMart uses for “New”, “Sale”, “Hot”, etc.
If WoodMart already prints a label → my badge should appear below it.
If there are no labels → my badge should appear alone inside one .product-labels block.
Right now, adding a badge via functions.php creates a second .product-labels container, because WoodMart outputs its labels directly inside template files.
Is there an official hook or filter that allows me to append custom labels to the existing WoodMart label container in both the shop loop and the product page gallery?
Thank you!