awesomemotive / edd-themedd

WordPress theme for Easy Digital Downloads
https://themedd.com
32 stars 9 forks source link

EDD 3.0 - Remove schema markup from cross-sell/upsell integration #254

Closed robincornett closed 3 years ago

robincornett commented 3 years ago

Although there is a filter to disable the schema microdata, the markup is still being added in the cross-sell/upsell class.

I think the problem is actually that the Cross-Sell/Upsell plugin is overriding everything else with schema by doing a blanket setting of the schema microdata filter to true, and probably not correctly, as it's happening before the edd_csau_html filter is applied, but I think was intentionally disabled before building the output run through that filter. So we can fix it here, but also need to fix it in that extension.