WC_Product::get_download_expiry()
Get download expiry.
Method of the class: WC_Product{}
No Hooks.
Return
Int
.
Usage
$WC_Product = new WC_Product(); $WC_Product->get_download_expiry( $context );
- $context(string)
- What the value is for. Valid values are view and edit.
Default: 'view'
Changelog
Since 3.0.0 | Introduced. |
WC_Product::get_download_expiry() WC Product::get download expiry code WC 9.8.1
public function get_download_expiry( $context = 'view' ) { return $this->get_prop( 'download_expiry', $context ); }