-
Hello,
Hope you are doing well.
I couldn’t stop xD, and explored where this is coming from. Schema is integrated with Woocommerce core, so this is what I got (please see below), but don’t know what is the filter for og:image, and moreover I don’t know how to do this. I could have asked the developer-friend, but I thought if I shared it you would deepen your knowledge too and would be useful.
Nic wrote to me from Automattic and I’ll copy you exactly.
“The core code is here
I can see only one filter available, however.
It may be that you will have to use woocommerce_structured_data_product to filter here and look for the image $markup[‘image’] = $image; set here and replace the URL with your own value.
(so add_filter(woocommerce_structured_data_product, your function, 1, 10 ) etc). Your function would then set a new value for markup[image.
However, custom code is beyond the scope of our support (More on filters here.”
I think it’s very simple, but I do not know where to start research.
So, I will wait for your reply, thank you 🙏
The ticket ‘Woocommerce Schema For Taxonomies’ is closed to new replies.