WC_Product::get_type()
Get internal type. Should return string and should be overridden by child classes.
The product_type property is deprecated but is used here for BW compatibility with child classes which may be defining product_type and not have a get_type method.
Метод класса: WC_Product{}
Хуков нет.
Возвращает
Строку
.
Использование
$WC_Product = new WC_Product(); $WC_Product->get_type();
Список изменений
С версии 3.0.0 | Введена. |
Код WC_Product::get_type() WC Product::get type WC 9.7.1
public function get_type() { return isset( $this->product_type ) ? $this->product_type : ProductType::SIMPLE; }