WordPress at Your Fingertips
function is not described

WC_Product_Data_Store_Interface::get_product_type() public WC 1.0

Get the product type based on product ID.

{} It's a 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.

Code of WC_Product_Data_Store_Interface::get_product_type() WC 5.7.1

public function get_product_type( $product_id );