Strip string from $_product->get_title() to get a cleaner mini-cart
You need to add a function in your theme’s functions.php file that will find and remove those two words “shorts” and “longshorts” from a php string. Then you can add that function as a filter to the woocommerce_cart_item_name event that is being applied in your mini-cart.php Try something like: function wpse_remove_shorts_from_cart_title( $product_name ) { $product_name … Read more