WC_Product_Data_Store_Interface::get_product_type()
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() WC Product Data Store Interface::get product type code WC 9.5.1
public function get_product_type( $product_id );