WC_Customer_Download::get_access_granted()publicWC 1.0

Get access_granted.

Метод класса: WC_Customer_Download{}

Хуков нет.

Возвращает

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 );
$context(строка)
What the value is for. Valid values are 'view' and 'edit'.
По умолчанию: 'view'

Код WC_Customer_Download::get_access_granted() WC 8.7.0

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