WordPress at Your Fingertips
function is not described

WC_Product_Download::set_id() public WC 1.0

Set ID.

{} It's a method of the class: WC_Product_Download{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Download = new WC_Product_Download();
$WC_Product_Download->set_id( $value );
$value(string) (required)
Download ID.

Code of WC_Product_Download::set_id() WC 5.6.0

public function set_id( $value ) {
	$this->data['id'] = wc_clean( $value );
}