WC_Product::set_download_limit( int|string $download_limit )

Set download limit.


Description Description


Parameters Parameters

$download_limit

(Required) Product download limit.


Top ↑

Source Source

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

	public function set_download_limit( $download_limit ) {
		$this->set_prop( 'download_limit', -1 === (int) $download_limit || '' === $download_limit ? -1 : absint( $download_limit ) );
	}

Top ↑

Changelog 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.