This should be an optional configuration: Do not reset filters when clicking breadcrumbs
The default category breadcrumb URLs should contain filters just like FWW Product Categories widget with this option enabled: https://prnt.sc/w64m3a
e.g. existing filter is black: https://foundthru.com/product-category/dogs/dog-bowls/black/
I would like to change my breadcrumbs
from this: https://foundthru.com/product-category/dogs/
to this: https://foundthru.com/product-category/dogs/black/
We can use ‘woocommerce_get_breadcrumb’ filter hook:
https://stackoverflow.com/a/48897651
https://stackoverflow.com/a/52434698
How other plugins solve this issue (https://wordpress.org/plugins/permalink-manager/):
“Breadcrumbs support
If enabled, the HTML breadcrumbs will be filtered by the plugin to mimic the current URL structure.
Works with: WooCommerce, Yoast SEO, RankMath and SEOPress breadcrumbs.”
http://prntscr.com/zipcpi
This is how it’s done in Permalink Manager:
https://gist.github.com/twarrdy/ee4a5c4188eaa659cebfb42a2c783c93
Cool – that looks easy – thanks for the help and the function link.
Implemented in beta 2.46