WC_Customer_Download::set_access_granted()publicWC 1.0

Set access_granted.

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

No Hooks.


null. Nothing.


$WC_Customer_Download = new WC_Customer_Download();
$WC_Customer_Download->set_access_granted( $date );
UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if their is no date.
Default: null

Code of WC_Customer_Download::set_access_granted() WC 6.7.0

public function set_access_granted( $date = null ) {
	$this->set_date_prop( 'access_granted', $date );