WC_Customer_Download::get_access_expires()
Get access_expires.
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_expires( $context );
- $context(string)
- What the value is for. Valid values are 'view' and 'edit'.
Default: 'view'
WC_Customer_Download::get_access_expires() WC Customer Download::get access expires code WC 9.4.2
public function get_access_expires( $context = 'view' ) { return $this->get_prop( 'access_expires', $context ); }