WC_Product::set_download_expiry( int|string $download_expiry )

Set download expiry.


Description Description


Parameters Parameters

$download_expiry

(int|string) (Required) Product download expiry.


Top ↑

Source Source

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

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

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.