WC_Coupon::set_date_expires()
Set expiration date.
Method of the class: WC_Coupon{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Coupon = new WC_Coupon(); $WC_Coupon->set_date_expires( $date );
- $date(string|int|null) (required)
- UTC timestamp, or ISO 8601 DateTime. If the DateTime string has no timezone or offset, WordPress site timezone will be assumed. Null if there is no date.
Changelog
Since 3.0.0 | Introduced. |
WC_Coupon::set_date_expires() WC Coupon::set date expires code WC 9.4.2
public function set_date_expires( $date ) { $this->set_date_prop( 'date_expires', $date ); }