WC_Product_Data_Store_Interface::get_product_id_by_sku() public WC 1.0
Return product ID based on SKU.
{} It's a method of the class: WC_Product_Data_Store_Interface{}
No Hooks.
Return
Int.
Usage
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->get_product_id_by_sku( $sku );
- $sku(string) (required)
- SKU.
Code of WC_Product_Data_Store_Interface::get_product_id_by_sku() WC Product Data Store Interface::get product id by sku WC 5.0.0
public function get_product_id_by_sku( $sku );