// Hide Free Shipping message on single product page
add_filter('woocommerce_get_price_html', function($price, $product){
    // Remove any "& Free Shipping" text from price HTML
    return str_replace('& Free Shipping', '', $price);
}, 10, 2);
