WC_Product_Data_Store_Interface::get_product_typepublicWC 1.0

Get the product type based on product ID.

Method of the class: WC_Product_Data_Store_Interface{}

No Hooks.

Returns

true|false|String.

Usage

$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface();
$WC_Product_Data_Store_Interface->get_product_type( $product_id );
$product_id(int) (required)
Product ID.

WC_Product_Data_Store_Interface::get_product_type() code WC 10.5.0

public function get_product_type( $product_id );