WooCommerce-REST-API-Client-Library icon indicating copy to clipboard operation
WooCommerce-REST-API-Client-Library copied to clipboard

get_by_sku return false instead of error?

Open lawkwok opened this issue 10 years ago • 4 comments

If the get_by_sku function is used and the SKU does not exist on the server, a 404 error code is returned. Would it not be more helpful to return 'false' so the function can also be used to check the existence of a product?

lawkwok avatar Oct 14 '15 17:10 lawkwok