Reputation: 1
I am trying to remove
{"@type":"ListItem","position":2,"name":"Shop","item":"https://*******/shop/"},
Is there a good solution for this?
Upvotes: 0
Views: 261
Reputation: 5904
The ListItem data is generated here:
You can use the filter woocommerce_structured_data_breadcrumblist
to change the generated structured data, such as removing parts of it.
Use add_filter to add a filter function that overrides the returned markup, returning an empty array.
function f( $markup, $breadcrumbs ){
return array();
}
add_filter('woocommerce_structured_data_breadcrumblist', 'f', 10, 2);
Upvotes: 1