I have try for several hours to solve this but I am getting nowhere.
In the class-wc-structured-data I would like to add a Markup for "brand" as on my website the brand = the parent category
$markup['brand'] = $term = get_term_by('name', $name, 'product_cat');
I would like to call the wooocommerce parent category. With the above code I am getting the name as "False" instead of the parent category.
Can someone help me please ?
FYI I know little coding.