We are migrating a 5,000 SKU website to WooCommerce. In order to accommodate this and make the 301s as accurate as possible, we want to remove all hyphens/dashes from the product permalink in WooCommerce.

For example:

www.website.com/product/product-name/

Becomes

www.website.com/product/productname/

Any advice on how to do this? We already have the products imported, so it would be ideal to write a piece of code that would automatically strip the dash.

Thank you!