WC_Product_Variable::get_downloadable()publicWC 1.0

Variable products themselves cannot be downloadable.

Метод класса: WC_Product_Variable{}

Хуков нет.

Возвращает

true|false.

Использование

$WC_Product_Variable = new WC_Product_Variable();
$WC_Product_Variable->get_downloadable( $context );
$context(строка)
What the value is for. Valid values are view and edit.
По умолчанию: 'view'

Код WC_Product_Variable::get_downloadable() WC 8.7.0

public function get_downloadable( $context = 'view' ) {
	return false;
}