If you’re using a plugin such as Yoast or Rank Math, they usually recommend using their own breadcrumbs implementation, rather than WooCommerce’s native one.
The standard practice of overriding the output (or just implementing it) is either using a combination of template file overrides or just Shortcodes.
Rey offers a much simpler way. For example the code below:
add_action('rey/breadcrumbs/override', function(){
// For Rank Math.
if (function_exists('rank_math_the_breadcrumbs')) {
rank_math_the_breadcrumbs();
}
// Yoast SEO
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
});
* Please note that in order for this code to work, you will need either of those plugins to be active, thus checking if those functions exists.