Some themes or even the crocoblock plugin use this type of code:
return esc_url( $product->get_permalink() );
However this code does NOT respect wp coding standard and the post_type_link filter is not applied. We are plugin developers and this causes an error in our code and all customers using your plugin.
Please add the filter by replacing above code wit this:
return esc_url( apply_filters( ‘post_type_link’, $product->get_permalink(), get_post($product->get_id()), false, false ) );