Get internal type. Should return string and *should be overridden* by child classes.

Description Description

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.

Return Return


Top ↑

Source Source

File: includes/abstracts/abstract-wc-product.php

	public function get_type() {
		return isset( $this->product_type ) ? $this->product_type : 'simple';

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.