WC_Product::get_downloadable()publicWC 3.0.0

Get downloadable.

Method of the class: WC_Product{}

No Hooks.

Return

true|false.

Usage

$WC_Product = new WC_Product();
$WC_Product->get_downloadable( $context );
$context(string)
What the value is for. Valid values are view and edit.
Default: 'view'

Changelog

Since 3.0.0 Introduced.

WC_Product::get_downloadable() code WC 8.7.0

public function get_downloadable( $context = 'view' ) {
	return $this->get_prop( 'downloadable', $context );
}