WordPress at Your Fingertips
function is not described

WC_Customer_Download::set_downloads_remaining() public WC 1.0

Set downloads_remaining.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Customer_Download = new WC_Customer_Download();
$WC_Customer_Download->set_downloads_remaining( $value );
$value(int|string) (required)
Amount of downloads remaining.

Code of WC_Customer_Download::set_downloads_remaining() WC 5.7.1

public function set_downloads_remaining( $value ) {
	$this->set_prop( 'downloads_remaining', '' === $value ? '' : absint( $value ) );
}