I have a website using WooCommerce.
I have found an issue: if product name including only numbers - you can't view this product. Browser is showing something like Category page.
If I add literal characters into the slug - the link is working correctly, but I can't do that all the time.
I thought that this problem creates one of the installed plugins. I disabled all plugins one by one (except WooCommerce), but it did not help.
How do I need to fix that?
I created a hook.
If only the numbers present in the product name - function adds "-product" to the Slug.
Even if you edit the slug and leave it only numbers - the function will work again