WC_Customer_Download::set_access_expires()publicWC 1.0

Set access_expires.

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

Хуков нет.


null. Ничего.


$WC_Customer_Download = new WC_Customer_Download();
$WC_Customer_Download->set_access_expires( $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.
По умолчанию: null

Код WC_Customer_Download::set_access_expires() WC 6.9.4

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