WC_Product_Data_Store_Interface::get_product_type()
Get the product type based on product ID.
Метод класса: WC_Product_Data_Store_Interface{}
Хуков нет.
Возвращает
true|false|Строку
.
Использование
$WC_Product_Data_Store_Interface = new WC_Product_Data_Store_Interface(); $WC_Product_Data_Store_Interface->get_product_type( $product_id );
- $product_id(int) (обязательный)
- Product ID.
Код WC_Product_Data_Store_Interface::get_product_type() WC Product Data Store Interface::get product type WC 8.7.0
public function get_product_type( $product_id );