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/
December 20, 2020 @ 1:12 am
We can use ‘woocommerce_get_breadcrumb’ filter hook:
https://stackoverflow.com/a/48897651
https://stackoverflow.com/a/52434698
February 14, 2021 @ 2:14 pm
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.”
February 14, 2021 @ 9:27 pm
http://prntscr.com/zipcpi
March 4, 2021 @ 2:11 pm
This is how it’s done in Permalink Manager:
https://gist.github.com/twarrdy/ee4a5c4188eaa659cebfb42a2c783c93
March 5, 2021 @ 7:29 am
Cool – that looks easy – thanks for the help and the function link.
March 30, 2021 @ 5:31 pm
Implemented in beta 2.46