WC_Coupon::set_date_expires( string|integer|null $date )

Set expiration date.


Description Description


Parameters Parameters

$date

(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.


Top ↑

Source Source

File: includes/class-wc-coupon.php

	public function set_date_expires( $date ) {
		$this->set_date_prop( 'date_expires', $date );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.