WordPress at Your Fingertips
function is not described

WC_Customer_Download::get_access_expires() public WC 1.0

Get access_expires.

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

No Hooks.


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


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

Code of WC_Customer_Download::get_access_expires() WC 5.6.0

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