I have a product in multiple categories. The latest woocommerce shows the shortest way as breadcrumb on the product page, but that doesnt make sense for me. I would like to use the primary category of the product as breadrumb trail.
I know that yoast has a function to do that, but it would be better to do it with some custom functions.php code.