Created the wc_get_product_id_by_sku() function
[API] Created a route to get products by SKU, closes  #6847