WC_Customer_Download::get_access_granted()publicWC 1.0

Get access_granted.

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_granted( $context );
$context(string)
What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'

WC_Customer_Download::get_access_granted() code WC 9.4.2

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