WC_Customer_Download::get_access_granted()publicWC 1.0

Get access_granted.

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

Code of WC_Customer_Download::get_access_granted() WC 6.7.0

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