WooCommerce-REST-API-Client-Library
WooCommerce-REST-API-Client-Library copied to clipboard
how can i check product exist by sku and if(){}
something like that $x = $client->products->get_by_sku( 'QWBENEFIT' ); if (!$x) { echo "OK! "; } else { echo "BAD! "; }
get_by_sku
is dixit "Deprecated due to issues"
Use get
with a filter, see #131