WC_Customer_Download::get_access_expires()publicWC 1.0

Get access_expires.

Method of the class: WC_Customer_Download{}

No Hooks.

Return

WC_DateTime|null. Object if the date is set or null if there is no date.

Usage

$WC_Customer_Download = new WC_Customer_Download();
$WC_Customer_Download->get_access_expires( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Customer_Download::get_access_expires() code WC 8.7.0

public function get_access_expires( $context = 'view' ) {
	return $this->get_prop( 'access_expires', $context );
}