WC_Product::set_downloadable( bool|string $downloadable )

Set if the product is downloadable.

Description Description

Parameters Parameters


(Required) Whether product is downloadable or not.

Top ↑

Source Source

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

	public function set_downloadable( $downloadable ) {
		$this->set_prop( 'downloadable', wc_string_to_bool( $downloadable ) );

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.