WC_Product_Data_Store_Interface::get_product_type()publicWC 1.0

Get the product type based on product ID.

Method of the class: WC_Product_Data_Store_Interface{}

No Hooks.

Return

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 8.6.1

public function get_product_type( $product_id );